Skip to content

Commit c2202d3

Browse files
committed
Merge pull request #103838 from ebeem/master
Core: Fix translation remaps incorrectly falling back
2 parents cce10e0 + 9add19a commit c2202d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/io/resource_loader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,9 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
12691269
}
12701270

12711271
// Fallback to p_path if new_path does not exist.
1272-
if (!FileAccess::exists(new_path + ".import") && !FileAccess::exists(new_path)) {
1272+
if (!FileAccess::exists(new_path + ".import") &&
1273+
!FileAccess::exists(new_path + ".remap") &&
1274+
!FileAccess::exists(new_path)) {
12731275
WARN_PRINT(vformat("Translation remap '%s' does not exist. Falling back to '%s'.", new_path, p_path));
12741276
new_path = p_path;
12751277
}

0 commit comments

Comments
 (0)