summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-15 16:10:12 +0200
committerGitHub <noreply@github.com>2018-08-15 16:10:12 +0200
commitd006aa0abb1c7580755a4fe72502d3a362d3f01f (patch)
tree1c88210e0dd9b1ff06831ca6939a47922ad96683
parent040c6be426ea915a70eb7ded687c7618c33ad3ff (diff)
parent8591a1bd8013cfeadd806ea882a5c2e7ba6d604c (diff)
Merge pull request #21021 from DualMatrix/new_node_warning
Fixed error spam in create node dialog with custom types.
-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 1783cedf27..ab7a7054eb 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -333,7 +333,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)