Fix error when use relative #include in .gdshader / .gdshaderinc file
This commit is contained in:
parent
3978628c6c
commit
6cf9af2817
3 changed files with 5 additions and 9 deletions
|
|
@ -4384,10 +4384,7 @@ String String::simplify_path() const {
|
|||
dirs.remove_at(i);
|
||||
i--;
|
||||
} else if (d == "..") {
|
||||
if (i == 0) {
|
||||
dirs.remove_at(i);
|
||||
i--;
|
||||
} else {
|
||||
if (i != 0) {
|
||||
dirs.remove_at(i);
|
||||
dirs.remove_at(i - 1);
|
||||
i -= 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue