Merge pull request #101446 from KoBeWi/path_ensuring_never_ends

Fix UID path remap
This commit is contained in:
Rémi Verschelde
2025-01-11 22:30:25 +01:00

View File

@ -1226,6 +1226,7 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
} else {
// Try file remap.
// Usually, there's no remap file and FileAccess::exists() is faster than FileAccess::open().
new_path = ResourceUID::ensure_path(new_path);
if (FileAccess::exists(new_path + ".remap")) {
Error err;
Ref<FileAccess> f = FileAccess::open(new_path + ".remap", FileAccess::READ, &err);