Skip to content

Commit 5b52b4b

Browse files
committed
Merge pull request #101446 from KoBeWi/path_ensuring_never_ends
Fix UID path remap
2 parents 768c60c + 9ad34ec commit 5b52b4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/io/resource_loader.cpp

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

0 commit comments

Comments
 (0)