GDScript: Fix "Mismatched external parser" for autoloads

This commit is contained in:
Danil Alexeev 2024-07-09 16:16:45 +03:00
parent 82cedc83c9
commit 110c4d4067
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
2 changed files with 3 additions and 3 deletions

View file

@ -329,9 +329,9 @@ bool ProjectSettings::_set(const StringName &p_name, const Variant &p_value) {
String path = p_value;
if (path.begins_with("*")) {
autoload.is_singleton = true;
autoload.path = path.substr(1);
autoload.path = path.substr(1).simplify_path();
} else {
autoload.path = path;
autoload.path = path.simplify_path();
}
add_autoload(autoload);
} else if (p_name.operator String().begins_with("global_group/")) {