瀏覽代碼

fix error dialog from appearing after loading material res

Manuel Dun 2 年之前
父節點
當前提交
e9d8847e29
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/editor_resource_picker.cpp

+ 1 - 1
editor/editor_resource_picker.cpp

@@ -155,7 +155,7 @@ void EditorResourcePicker::_file_selected(const String &p_path) {
 
 			any_type_matches = is_global_class ? EditorNode::get_editor_data().script_class_is_parent(res_type, base) : loaded_resource->is_class(base);
 
-			if (!any_type_matches) {
+			if (any_type_matches) {
 				break;
 			}
 		}