浏览代码

Merge pull request #21021 from DualMatrix/new_node_warning

Fixed error spam in create node dialog with custom types.
Rémi Verschelde 7 年之前
父节点
当前提交
d006aa0abb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/create_dialog.cpp

+ 1 - 1
editor/create_dialog.cpp

@@ -333,7 +333,7 @@ void CreateDialog::_update_search() {
 					break;
 					break;
 				}
 				}
 
 
-				type = ClassDB::get_parent_class(type);
+				type = cpp_type ? ClassDB::get_parent_class(type) : ed.script_class_get_base(type);
 			}
 			}
 
 
 			if (found)
 			if (found)