mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
fix 2d attach() bug
This commit is contained in:
parent
5c3692d109
commit
9ac540e03d
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ module attach(parent, child, overlap, align, spin=0, norot, inset=0, shiftout=0,
|
|||
anchor_data = _find_anchor(anchor, $parent_geom);
|
||||
anchor_pos = anchor_data[1];
|
||||
anchor_dir = factor*anchor_data[2];
|
||||
anchor_spin = !inside || anchor==TOP || anchor==BOT ? anchor_data[3]
|
||||
anchor_spin = two_d || !inside || anchor==TOP || anchor==BOT ? anchor_data[3]
|
||||
: let(spin_dir = rot(anchor_data[3],from=UP, to=-anchor_dir, p=BACK))
|
||||
_compute_spin(anchor_dir,spin_dir);
|
||||
for(align_ind = idx(align_list)){
|
||||
|
|
Loading…
Reference in a new issue