mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
bugfix
This commit is contained in:
parent
e3225cb697
commit
3fa4f967d4
1 changed files with 1 additions and 1 deletions
|
@ -861,7 +861,7 @@ module attach(parent, child, overlap, align, spin=0, norot, inset=0, shiftout=0,
|
||||||
anch = _find_anchor(anchr, $parent_geom);
|
anch = _find_anchor(anchr, $parent_geom);
|
||||||
pos = is_undef(align) ? anch[1] : _find_anchor(anchr+align, $parent_geom)[1];
|
pos = is_undef(align) ? anch[1] : _find_anchor(anchr+align, $parent_geom)[1];
|
||||||
factor = inside?-1:1;
|
factor = inside?-1:1;
|
||||||
$attach_to = u_mul(factor,child);
|
$attach_to = is_vector(child) ? factor*child : child;
|
||||||
$attach_anchor = list_set(anch, 1, pos); ///
|
$attach_anchor = list_set(anch, 1, pos); ///
|
||||||
startdir = anchr==UP || anchr==DOWN ? BACK : UP;
|
startdir = anchr==UP || anchr==DOWN ? BACK : UP;
|
||||||
enddir = is_undef(child) || child.z==0 ? UP : BACK;
|
enddir = is_undef(child) || child.z==0 ? UP : BACK;
|
||||||
|
|
Loading…
Reference in a new issue