You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
fix: add uri_decode to root_uri #63388
This commit is contained in:
@@ -499,9 +499,9 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
|
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
|
||||||
String path = p_uri;
|
String path = p_uri.uri_decode();
|
||||||
path = path.uri_decode();
|
String base_uri = root_uri.uri_decode();
|
||||||
path = path.replacen(root_uri + "/", "res://");
|
path = path.replacen(base_uri + "/", "res://");
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user