Skip to content

Commit 9add19a

Browse files
committed
Core: Fix translation remaps incorrectly falling back
1 parent b5bdb88 commit 9add19a

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
@@ -1249,7 +1249,9 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
12491249
}
12501250

12511251
// Fallback to p_path if new_path does not exist.
1252-
if (!FileAccess::exists(new_path + ".import") && !FileAccess::exists(new_path)) {
1252+
if (!FileAccess::exists(new_path + ".import") &&
1253+
!FileAccess::exists(new_path + ".remap") &&
1254+
!FileAccess::exists(new_path)) {
12531255
WARN_PRINT(vformat("Translation remap '%s' does not exist. Falling back to '%s'.", new_path, p_path));
12541256
new_path = p_path;
12551257
}

0 commit comments

Comments
 (0)