mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-02 02:30:14 +02:00
Fixed \*rot_copies() when rots is given a range.
This commit is contained in:
@@ -633,8 +633,10 @@ module rot_copies(rots=[], v=undef, cp=[0,0,0], n=undef, sa=0, offset=0, delta=[
|
|||||||
sang = sa + offset;
|
sang = sa + offset;
|
||||||
angs = !is_undef(n)?
|
angs = !is_undef(n)?
|
||||||
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
|
(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)) {
|
for ($idx = idx(angs)) {
|
||||||
$ang = angs[$idx];
|
$ang = angs[$idx];
|
||||||
$axis = v;
|
$axis = v;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,204];
|
BOSL_VERSION = [2,0,205];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user