mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-29 15:59:36 +00:00
Bugfix for named attachment anchors.
This commit is contained in:
parent
97663dd6a3
commit
f5cb79ab7a
2 changed files with 2 additions and 2 deletions
|
@ -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 = (
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,178];
|
||||
BOSL_VERSION = [2,0,179];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue