From 14e013cd13529bfcffec47a7354acdaae4bcc6f0 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sun, 19 Jul 2020 05:49:05 -0700 Subject: [PATCH] Bugfix for unit() changes in attachment --- attachments.scad | 2 +- version.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attachments.scad b/attachments.scad index 1c4b19a..1e7a9fb 100644 --- a/attachments.scad +++ b/attachments.scad @@ -421,7 +421,7 @@ function find_anchor(anchor, geom) = top = point3d(vmul(point2d(size2)/2,axy)+shift,h/2), pos = point3d(cp) + lerp(bot,top,u) + offset, sidevec = unit(rot(from=UP, to=top-bot, p=point3d(axy)),UP), - vvec = anchor==CENTER? UP : unit([0,0,anchor.z]), + vvec = anchor==CENTER? UP : unit([0,0,anchor.z],UP), vec = anchor==CENTER? UP : approx(axy,[0,0])? unit(anchor,UP) : approx(anchor.z,0)? sidevec : diff --git a/version.scad b/version.scad index b15931a..073f188 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,392]; +BOSL_VERSION = [2,0,393]; // Section: BOSL Library Version Functions