Skip to content

Commit

Permalink
Fix translation remapping check for imported resources
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored and GuybrushThreepwood-GitHub committed Jan 27, 2024
1 parent e0ce051 commit ef52dfc
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 @@ -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;
}
Expand Down

0 comments on commit ef52dfc

Please sign in to comment.