From 375f1f2e3bf30ae0f68c011217ec42a33979afed Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sun, 19 Jul 2020 23:05:54 -0700 Subject: [PATCH] Bugfix for new unit() in affine_frame_map() --- affine.scad | 6 +++--- version.scad | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/affine.scad b/affine.scad index 4a1a7ff..b39529f 100644 --- a/affine.scad +++ b/affine.scad @@ -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)] : diff --git a/version.scad b/version.scad index b26cd44..5ce4534 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,394]; +BOSL_VERSION = [2,0,395]; // Section: BOSL Library Version Functions