mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
n= option bug fix
This commit is contained in:
parent
61db695210
commit
536a8715b5
1 changed files with 1 additions and 1 deletions
|
@ -1172,7 +1172,7 @@ module path_spread(path, n, spacing, sp=undef, rotate_children=true, closed=fals
|
||||||
sort([for(entry=ptlist) posmod(entry-listcenter,length)]) :
|
sort([for(entry=ptlist) posmod(entry-listcenter,length)]) :
|
||||||
[for(entry=ptlist) entry + length/2-listcenter ]
|
[for(entry=ptlist) entry + length/2-listcenter ]
|
||||||
);
|
);
|
||||||
distOK = min(distances)>=0 && max(distances)<=length;
|
distOK = is_def(n) || (min(distances)>=0 && max(distances)<=length);
|
||||||
assert(distOK,"Cannot fit all of the copies");
|
assert(distOK,"Cannot fit all of the copies");
|
||||||
cutlist = path_cut(path, distances, closed, direction=true);
|
cutlist = path_cut(path, distances, closed, direction=true);
|
||||||
planar = len(path[0])==2;
|
planar = len(path[0])==2;
|
||||||
|
|
Loading…
Reference in a new issue