2
0
Эх сурвалжийг харах

Merge pull request #21021 from DualMatrix/new_node_warning

Fixed error spam in create node dialog with custom types.
Rémi Verschelde 7 жил өмнө
parent
commit
d006aa0abb

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