You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-try to avoid errors when path using ".." is present in script include, fixes #1703
This commit is contained in:
@@ -1386,7 +1386,7 @@ Error GDCompiler::_parse_class(GDScript *p_script,GDScript *p_owner,const GDPars
|
||||
_set_error("Could not resolve relative path for parent class: "+path,p_class);
|
||||
return ERR_FILE_NOT_FOUND;
|
||||
}
|
||||
path=base.get_base_dir().plus_file(path);
|
||||
path=base.get_base_dir().plus_file(path).simplify_path();
|
||||
}
|
||||
script = ResourceLoader::load(path);
|
||||
if (script.is_null()) {
|
||||
|
||||
Reference in New Issue
Block a user