summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-08-14 23:36:00 +0200
committerDualMatrix <piet.goris@gmail.com>2018-08-15 15:35:14 +0200
commit8591a1bd8013cfeadd806ea882a5c2e7ba6d604c (patch)
tree816c006fa31e7e54498d257f953bd97fa29a03dd
parentef5095720b56e72d99b8ca2773e2a5fa24f7097d (diff)
Fixed error spam in create node dialog with custom types.
This should fix #20789
-rw-r--r--editor/create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 5dd5b7fcc5..aa70c5aa15 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -330,7 +330,7 @@ void CreateDialog::_update_search() {
break;
}
- type = ClassDB::get_parent_class(type);
+ type = cpp_type ? ClassDB::get_parent_class(type) : ed.script_class_get_base(type);
}
if (found)