mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
whoops, fix relative filenames
This commit is contained in:
parent
e6e862b35f
commit
16636129b7
@ -921,8 +921,15 @@ standardize() {
|
||||
// Ignore /./.
|
||||
} else if (component == ".." && !components.empty() &&
|
||||
!(components.back() == "..")) {
|
||||
// Back up.
|
||||
components.pop_back();
|
||||
if (components.back() == ".") {
|
||||
// To "back up" over a leading ./ means simply to remove the
|
||||
// leading ./
|
||||
components.pop_back();
|
||||
components.push_back(component);
|
||||
} else {
|
||||
// Back up normally.
|
||||
components.pop_back();
|
||||
}
|
||||
} else {
|
||||
components.push_back(component);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user