diff --git a/distributors.scad b/distributors.scad index 22f64b50..6d66b31e 100644 --- a/distributors.scad +++ b/distributors.scad @@ -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; diff --git a/version.scad b/version.scad index 1f6ddb42..309d5bc5 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,204]; +BOSL_VERSION = [2,0,205]; // Section: BOSL Library Version Functions