Bugfix for new unit() in affine_frame_map()

This commit is contained in:
Garth Minette 2020-07-19 23:05:54 -07:00
parent 87c8adef65
commit 375f1f2e3b
2 changed files with 4 additions and 4 deletions

View File

@ -277,9 +277,9 @@ function affine_frame_map(x,y,z, reverse=false) =
assert(yvalid,"Input y must be a length 3 vector")
assert(zvalid,"Input z must be a length 3 vector")
let(
x = is_undef(x)? undef : unit(x),
y = is_undef(y)? undef : unit(y),
z = is_undef(z)? undef : unit(z),
x = is_undef(x)? undef : unit(x,RIGHT),
y = is_undef(y)? undef : unit(y,BACK),
z = is_undef(z)? undef : unit(z,UP),
map = is_undef(x)? [cross(y,z), y, z] :
is_undef(y)? [x, cross(z,x), z] :
is_undef(z)? [x, y, cross(x,y)] :

View File

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