mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:58:28 +00:00
Merge pull request #84791 from akien-mga/fix-translation-remapping-check
Fix translation remapping check for imported resources
This commit is contained in:
commit
2bcc2a3cd0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue