mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
[Core] Fix ResourceLoader.load
cache with relative paths
Paths were not simplified meaning that `res://foo.bar` was treated differently from `./foo.bar` and similar
This commit is contained in:
parent
86415f0245
commit
0274877def
@ -402,7 +402,7 @@ static String _validate_local_path(const String &p_path) {
|
||||
if (uid != ResourceUID::INVALID_ID) {
|
||||
return ResourceUID::get_singleton()->get_id_path(uid);
|
||||
} else if (p_path.is_relative_path()) {
|
||||
return "res://" + p_path;
|
||||
return ("res://" + p_path).simplify_path();
|
||||
} else {
|
||||
return ProjectSettings::get_singleton()->localize_path(p_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user