Browse Source

Merge pull request #21021 from DualMatrix/new_node_warning

Fixed error spam in create node dialog with custom types.
Rémi Verschelde 7 năm trước cách đây
mục cha
commit
d006aa0abb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/create_dialog.cpp

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