From bd058d90ccade51936d903cc6b26c921cc34e2c5 Mon Sep 17 00:00:00 2001 From: Kevin Keating Date: Sat, 4 Jan 2025 17:56:58 -0500 Subject: [PATCH] now setting $orig and $idx in both branches of mirror_copy() module --- distributors.scad | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/distributors.scad b/distributors.scad index e706adc..10881dd 100644 --- a/distributors.scad +++ b/distributors.scad @@ -1823,8 +1823,16 @@ module mirror_copy(v=[0,0,1], offset=0, cp) children(); } } else { - translate(off) children(); - translate(cp) mirror(nv) translate(-cp) translate(off) children(); + translate(off) { + $orig = true; + $idx = 0; + children(); + } + translate(cp) mirror(nv) translate(-cp) translate(off) { + $orig = false; + $idx = 1; + children(); + } } }