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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user