mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-19 17:01:36 +02:00
Fixes assert in scale()
This commit is contained in:
@@ -551,7 +551,7 @@ function zrot(a=0, cp=undef, p=undef) = rot(a, cp=cp, p=p);
|
|||||||
// #stroke(path,closed=true);
|
// #stroke(path,closed=true);
|
||||||
// stroke(scale([1.5,3],p=path),closed=true);
|
// stroke(scale([1.5,3],p=path),closed=true);
|
||||||
function scale(v=1, p=undef) =
|
function scale(v=1, p=undef) =
|
||||||
assert(is_vector(v))
|
assert(is_num(v) || is_vector(v))
|
||||||
assert(is_undef(p) || is_list(p))
|
assert(is_undef(p) || is_list(p))
|
||||||
let(v = is_num(v)? [v,v,v] : v)
|
let(v = is_num(v)? [v,v,v] : v)
|
||||||
is_undef(p)? (
|
is_undef(p)? (
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,228];
|
BOSL_VERSION = [2,0,229];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user