This commit is contained in:
Adrian Mariano 2024-04-29 06:01:19 -04:00
parent e3225cb697
commit 3fa4f967d4

View file

@ -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;