1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #103838 from ebeem/master

Core: Fix translation remaps incorrectly falling back
This commit is contained in:
Thaddeus Crews
2025-08-01 11:45:22 -05:00

View File

@@ -1269,7 +1269,9 @@ 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 + ".import") && !FileAccess::exists(new_path)) {
if (!FileAccess::exists(new_path + ".import") &&
!FileAccess::exists(new_path + ".remap") &&
!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;
}