From 4b8b0803eb1d91041b781683caa0feaefab03ace Mon Sep 17 00:00:00 2001 From: Marius Hanl Date: Thu, 14 Dec 2023 01:48:01 +0100 Subject: [PATCH] Return false when no '.editor.ctex' file exists so that the file will be reimported after and no error is printed --- editor/import/resource_importer_texture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 9b980233595..7f27be99f7e 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/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);