Oops, make path relative routine was broken when the filenames
shared a prefix (/path/abc.slvs, /path/abcdef.slvs). [git-p4: depot-paths = "//depot/solvespace/": change = 1843]solver
parent
98b0f65cea
commit
222007f3d8
7
util.cpp
7
util.cpp
|
@ -26,6 +26,13 @@ void MakePathRelative(char *basep, char *pathp)
|
|||
if(!(base[com] && path[com])) return; // weird, prefix is entire string
|
||||
if(com == 0) return; // maybe on different drive letters?
|
||||
|
||||
// Align the common prefix to the nearest slash; otherwise would break
|
||||
// on subdirectories or filenames that shared a prefix.
|
||||
while(com >= 1 && base[com-1] != '/' && base[com-1] != '\\') {
|
||||
com--;
|
||||
}
|
||||
if(com == 0) return;
|
||||
|
||||
int sections = 0;
|
||||
int secLen = 0, secStart = 0;
|
||||
for(i = com; base[i]; i++) {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
|
||||
get rid of the oops() calls in the mesh codes
|
||||
auto-generate circles and faces when lathing
|
||||
copy the section geometry to other end when sweeping
|
||||
cylindrical faces
|
||||
trace point feature
|
||||
smooth shading
|
||||
leak fixing
|
||||
cylindrical faces?
|
||||
|
||||
|
||||
long term
|
||||
|
|
Loading…
Reference in New Issue