diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 13:16:37 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 13:17:12 +0100 |
commit | 2729a78fd722fdabc337e89396311522539abe1d (patch) | |
tree | 0d16a54839a01f0fd82d38c59045d30dbf83d029 /core/io/resource_loader.cpp | |
parent | 89f2f7f278b27db396589d50e51be8a1e6dca919 (diff) | |
download | redot-engine-2729a78fd722fdabc337e89396311522539abe1d.tar.gz |
Fix translation remapping check for imported resources
Fixes #81660.
Diffstat (limited to 'core/io/resource_loader.cpp')
-rw-r--r-- | core/io/resource_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 6721ec0953..2fdde9cc3a 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -918,7 +918,7 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem } // Fallback to p_path if new_path does not exist. - if (!FileAccess::exists(new_path)) { + if (!FileAccess::exists(new_path + ".import") && !FileAccess::exists(new_path)) { WARN_PRINT(vformat("Translation remap '%s' does not exist. Falling back to '%s'.", new_path, p_path)); new_path = p_path; } |