浏览代码

Fix translation remapping check for imported resources

Fixes #81660.

(cherry picked from commit 2729a78fd722fdabc337e89396311522539abe1d)
Rémi Verschelde 1 年之前
父节点
当前提交
c3a6dd2c11
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/io/resource_loader.cpp

+ 1 - 1
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;
 		}