From f5cb79ab7abd94f0081de7ca1afe85f711a64767 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 9 Mar 2020 21:29:22 -0700 Subject: [PATCH] Bugfix for named attachment anchors. --- attachments.scad | 2 +- version.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attachments.scad b/attachments.scad index b62d9ae..5e46cde 100644 --- a/attachments.scad +++ b/attachments.scad @@ -366,7 +366,6 @@ function attach_transform(anchor=CENTER, spin=0, orient=UP, geom, p) = // geom = The geometry description of the shape. function find_anchor(anchor, geom) = let( - anchor = point3d(anchor), offset = anchor==CENTER? CENTER : select(geom,-2), anchors = select(geom,-1), type = geom[0] @@ -377,6 +376,7 @@ function find_anchor(anchor, geom) = anchors[found] ) : assert(is_vector(anchor),str("anchor=",anchor)) + let(anchor = point3d(anchor)) anchor==CENTER? [anchor, CENTER, UP, 0] : let( oang = ( diff --git a/version.scad b/version.scad index 276e940..e30fe69 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,178]; +BOSL_VERSION = [2,0,179]; // Section: BOSL Library Version Functions