Skip to content

Commit

Permalink
Merge pull request #86137 from Maran23/editor-error-metadata
Browse files Browse the repository at this point in the history
Do not print error when editor meta was not found as it will be reimported anyway after
  • Loading branch information
YuriSizov committed Dec 16, 2023
2 parents 4e29b16 + 4b8b080 commit e63f1d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/import/resource_importer_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e63f1d4

Please sign in to comment.