From c3a6dd2c118d3c3b1655ce2cf73f24ecaf520e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 12 Nov 2023 13:16:37 +0100 Subject: [PATCH] Fix translation remapping check for imported resources Fixes #81660. (cherry picked from commit 2729a78fd722fdabc337e89396311522539abe1d) --- core/io/resource_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 1fe662b1fad..b9bbfc5e661 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -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. - 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; }