summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-07-21 10:16:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-07-21 10:16:30 -0300
commite75bad41f777502b2fc05c9a8ccbb3f86c98b891 (patch)
tree50e0b79d63969b9f79a16c978b8a95195d9a9e23 /tools
parent124e3591a5b17e0fd4e50540dd909bed94792f32 (diff)
Hide editor types from create node dialog, closes #3263
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/create_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp
index 07d1566ab8..3ab2e35242 100644
--- a/tools/editor/create_dialog.cpp
+++ b/tools/editor/create_dialog.cpp
@@ -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