Skip to content

Commit

Permalink
Fix translation remapping check for imported resources
Browse files Browse the repository at this point in the history
Fixes #81660.
  • Loading branch information
akien-mga committed Nov 12, 2023
1 parent 89f2f7f commit 2729a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,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;
}
Expand Down

0 comments on commit 2729a78

Please sign in to comment.