Merge pull request #63388 from A-Lamia/sync_script_content_fix

This commit is contained in:
Rémi Verschelde 2022-07-27 19:18:01 +02:00 committed by GitHub
commit abb44676e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -499,7 +499,9 @@ 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(root_uri + "/", "res://");
path = path.replace("///", "//");
path = path.replace("%3A", ":");
path = path.replacen(root_uri + "/", "res://");
path = path.uri_decode();
return path;
}