Fixed \*rot_copies() when rots is given a range.

This commit is contained in:
Revar Desmera 2020-03-19 20:32:07 -07:00
parent 392b063a0b
commit c38b7ee8e1
2 changed files with 5 additions and 3 deletions

View file

@ -633,8 +633,10 @@ module rot_copies(rots=[], v=undef, cp=[0,0,0], n=undef, sa=0, offset=0, delta=[
sang = sa + offset;
angs = !is_undef(n)?
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
assert(is_list(rots))
rots;
rots==[]? [] :
assert(!is_string(rots), "Argument rots must be an angle, a list of angles, or a range of angles.")
assert(!is_undef(rots[0]), "Argument rots must be an angle, a list of angles, or a range of angles.")
[for (a=rots) a];
for ($idx = idx(angs)) {
$ang = angs[$idx];
$axis = v;

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,204];
BOSL_VERSION = [2,0,205];
// Section: BOSL Library Version Functions