Explorar o código

Fixed error spam in create node dialog with custom types.

This should fix #20789
DualMatrix %!s(int64=7) %!d(string=hai) anos
pai
achega
8591a1bd80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/create_dialog.cpp

+ 1 - 1
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)