mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-05 11:07:42 +02:00
Bugfix for named attachment anchors.
This commit is contained in:
@@ -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 = (
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,178];
|
BOSL_VERSION = [2,0,179];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user