Browse Source

Merge pull request #21021 from DualMatrix/new_node_warning

Fixed error spam in create node dialog with custom types.
Rémi Verschelde 7 years ago
parent
commit
d006aa0abb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/create_dialog.cpp

+ 1 - 1
editor/create_dialog.cpp

@@ -333,7 +333,7 @@ void CreateDialog::_update_search() {
 					break;
 					break;
 				}
 				}
 
 
-				type = ClassDB::get_parent_class(type);
+				type = cpp_type ? ClassDB::get_parent_class(type) : ed.script_class_get_base(type);
 			}
 			}
 
 
 			if (found)
 			if (found)