mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
whoops, fix relative filenames
This commit is contained in:
parent
e6e862b35f
commit
16636129b7
@ -921,8 +921,15 @@ standardize() {
|
|||||||
// Ignore /./.
|
// Ignore /./.
|
||||||
} else if (component == ".." && !components.empty() &&
|
} else if (component == ".." && !components.empty() &&
|
||||||
!(components.back() == "..")) {
|
!(components.back() == "..")) {
|
||||||
// Back up.
|
if (components.back() == ".") {
|
||||||
components.pop_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 {
|
} else {
|
||||||
components.push_back(component);
|
components.push_back(component);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user