mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Bugfix for named attachment anchors.
This commit is contained in:
parent
97663dd6a3
commit
f5cb79ab7a
@ -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…
x
Reference in New Issue
Block a user