diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 23:00:08 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 23:00:08 +0100 |
commit | 2bcc2a3cd0b70034e2b0559342a30c65d94a0304 (patch) | |
tree | ba3ef0b745352616af574e4d18d26e5e8775455f /core/io/resource_loader.cpp | |
parent | 5a5b456fca2f6130293c81ab6cbeb9094e87e60a (diff) | |
parent | 2729a78fd722fdabc337e89396311522539abe1d (diff) | |
download | redot-engine-2bcc2a3cd0b70034e2b0559342a30c65d94a0304.tar.gz |
Merge pull request #84791 from akien-mga/fix-translation-remapping-check
Fix translation remapping check for imported resources
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 b1ebdff91f..529128b9a2 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -920,7 +920,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; } |