mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 02:51:25 +00:00
-try to avoid errors when path using ".." is present in script include, fixes #1703
This commit is contained in:
parent
fdaa2920eb
commit
4661a6e126
12 changed files with 14 additions and 25 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue