You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Hide editor types from create node dialog, closes #3263
This commit is contained in:
@@ -164,8 +164,11 @@ void CreateDialog::_update_search() {
|
||||
for(;I;I=I->next()) {
|
||||
|
||||
|
||||
|
||||
String type=I->get();
|
||||
|
||||
if (base_type=="Node" && type.begins_with("Editor"))
|
||||
continue; // do not show editor nodes
|
||||
|
||||
if (!ObjectTypeDB::can_instance(type))
|
||||
continue; // cant create what can't be instanced
|
||||
|
||||
Reference in New Issue
Block a user