mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
fix: modifies workspace->root_uri so that p_uri is symmetrical to other operating systems. #63388
This commit is contained in:
parent
c8cdc10902
commit
42a16ef76e
2 changed files with 4 additions and 4 deletions
|
|
@ -500,10 +500,8 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
|
|||
|
||||
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
|
||||
String path = p_uri;
|
||||
path = path.replace("///", "//");
|
||||
path = path.replace("%3A", ":");
|
||||
path = path.replacen(root_uri + "/", "res://");
|
||||
path = path.uri_decode();
|
||||
path = path.replacen(root_uri + "/", "res://");
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue