mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 20:56:32 +02:00
Bugfix for new unit() in affine_frame_map()
This commit is contained in:
@@ -277,9 +277,9 @@ function affine_frame_map(x,y,z, reverse=false) =
|
|||||||
assert(yvalid,"Input y must be a length 3 vector")
|
assert(yvalid,"Input y must be a length 3 vector")
|
||||||
assert(zvalid,"Input z must be a length 3 vector")
|
assert(zvalid,"Input z must be a length 3 vector")
|
||||||
let(
|
let(
|
||||||
x = is_undef(x)? undef : unit(x),
|
x = is_undef(x)? undef : unit(x,RIGHT),
|
||||||
y = is_undef(y)? undef : unit(y),
|
y = is_undef(y)? undef : unit(y,BACK),
|
||||||
z = is_undef(z)? undef : unit(z),
|
z = is_undef(z)? undef : unit(z,UP),
|
||||||
map = is_undef(x)? [cross(y,z), y, z] :
|
map = is_undef(x)? [cross(y,z), y, z] :
|
||||||
is_undef(y)? [x, cross(z,x), z] :
|
is_undef(y)? [x, cross(z,x), z] :
|
||||||
is_undef(z)? [x, y, cross(x,y)] :
|
is_undef(z)? [x, y, cross(x,y)] :
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,394];
|
BOSL_VERSION = [2,0,395];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user