瀏覽代碼

Core: Fix translation remaps incorrectly falling back

Almarhoon Ibraheem 6 月之前
父節點
當前提交
9add19a4ad
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/io/resource_loader.cpp

+ 3 - 1
core/io/resource_loader.cpp

@@ -1249,7 +1249,9 @@ 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 + ".import") && !FileAccess::exists(new_path)) {
+		if (!FileAccess::exists(new_path + ".import") &&
+				!FileAccess::exists(new_path + ".remap") &&
+				!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;
 		}