Fix translation remapping check for imported resources

Fixes #81660.

(cherry picked from commit 2729a78fd7)
This commit is contained in:
Rémi Verschelde 2023-11-12 13:16:37 +01:00 committed by Yuri Sizov
parent b468496700
commit c3a6dd2c11
1 changed files with 1 additions and 1 deletions

View File

@ -917,7 +917,7 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
} }
// Fallback to p_path if new_path does not exist. // 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)); WARN_PRINT(vformat("Translation remap '%s' does not exist. Falling back to '%s'.", new_path, p_path));
new_path = p_path; new_path = p_path;
} }