Merge pull request #95184 from jsjtxietian/shader-include-relative
Fix `String::simplify_path` handling of relative paths to parent dir (`../`), fixes relative shader includes
This commit is contained in:
commit
49e5fbfbd2
3 changed files with 5 additions and 9 deletions
|
|
@ -4430,10 +4430,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