1
0
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:
Juan Linietsky
2016-07-21 10:16:30 -03:00
parent 124e3591a5
commit e75bad41f7

View File

@@ -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