瀏覽代碼

Merge pull request #86137 from Maran23/editor-error-metadata

Do not print error when editor meta was not found as it will be reimported anyway after
Yuri Sizov 1 年之前
父節點
當前提交
e63f1d4494
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/import/resource_importer_texture.cpp

+ 4 - 0
editor/import/resource_importer_texture.cpp

@@ -745,6 +745,10 @@ bool ResourceImporterTexture::are_import_settings_valid(const String &p_path) co
 
 	if (meta.has("has_editor_variant")) {
 		String imported_path = ResourceFormatImporter::get_singleton()->get_internal_resource_path(p_path);
+		if (!FileAccess::exists(imported_path)) {
+			return false;
+		}
+
 		String editor_meta_path = imported_path.replace(".editor.ctex", ".editor.meta");
 		Dictionary editor_meta = _load_editor_meta(editor_meta_path);