diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-15 16:10:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 16:10:12 +0200 |
commit | d006aa0abb1c7580755a4fe72502d3a362d3f01f (patch) | |
tree | 1c88210e0dd9b1ff06831ca6939a47922ad96683 | |
parent | 040c6be426ea915a70eb7ded687c7618c33ad3ff (diff) | |
parent | 8591a1bd8013cfeadd806ea882a5c2e7ba6d604c (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.cpp | 2 |
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) |