mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-29 02:10:17 +02:00
fix attach() bug
This commit is contained in:
@@ -916,7 +916,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_data[3]==0 ? anchor_data[3] : 180+anchor_data[3];
|
||||
anchor_spin = !inside || anchor==TOP || anchor==BOT ? anchor_data[3] : 180+anchor_data[3];
|
||||
$anchor=anchor;
|
||||
for(align_ind = idx(align_list)){
|
||||
align = is_undef(align_list[align_ind]) ? undef
|
||||
|
Reference in New Issue
Block a user