From 9ac540e03d82d3a2497a5e426df4f3ef4dc5bca3 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 30 Aug 2024 20:17:49 -0400 Subject: [PATCH] fix 2d attach() bug --- attachments.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachments.scad b/attachments.scad index a3075f7..755d4cf 100644 --- a/attachments.scad +++ b/attachments.scad @@ -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)){