Merge pull request from A-Lamia/root_uri_decode

This commit is contained in:
Rémi Verschelde 2022-08-31 17:06:55 +02:00 committed by GitHub
commit 818af96189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }