Browse Source

Hide editor types from create node dialog, closes #3263

Juan Linietsky 9 years ago
parent
commit
e75bad41f7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tools/editor/create_dialog.cpp

+ 3 - 0
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