Bugfix for named attachment anchors.

This commit is contained in:
Revar Desmera
2020-03-09 21:29:22 -07:00
parent 97663dd6a3
commit f5cb79ab7a
2 changed files with 2 additions and 2 deletions

View File

@@ -366,7 +366,6 @@ function attach_transform(anchor=CENTER, spin=0, orient=UP, geom, p) =
// geom = The geometry description of the shape. // geom = The geometry description of the shape.
function find_anchor(anchor, geom) = function find_anchor(anchor, geom) =
let( let(
anchor = point3d(anchor),
offset = anchor==CENTER? CENTER : select(geom,-2), offset = anchor==CENTER? CENTER : select(geom,-2),
anchors = select(geom,-1), anchors = select(geom,-1),
type = geom[0] type = geom[0]
@@ -377,6 +376,7 @@ function find_anchor(anchor, geom) =
anchors[found] anchors[found]
) : ) :
assert(is_vector(anchor),str("anchor=",anchor)) assert(is_vector(anchor),str("anchor=",anchor))
let(anchor = point3d(anchor))
anchor==CENTER? [anchor, CENTER, UP, 0] : anchor==CENTER? [anchor, CENTER, UP, 0] :
let( let(
oang = ( oang = (

View File

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