You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +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()) {
|
for(;I;I=I->next()) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String type=I->get();
|
String type=I->get();
|
||||||
|
|
||||||
|
if (base_type=="Node" && type.begins_with("Editor"))
|
||||||
|
continue; // do not show editor nodes
|
||||||
|
|
||||||
if (!ObjectTypeDB::can_instance(type))
|
if (!ObjectTypeDB::can_instance(type))
|
||||||
continue; // cant create what can't be instanced
|
continue; // cant create what can't be instanced
|
||||||
|
|||||||
Reference in New Issue
Block a user