diff options
-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) |