From 44fea4047e1717197badfa7b436b64f2a8555c04 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sun, 3 Sep 2023 22:19:29 -0400 Subject: [PATCH] offset_sweep "extra" bugfix --- rounding.scad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rounding.scad b/rounding.scad index a970233..a248102 100644 --- a/rounding.scad +++ b/rounding.scad @@ -591,8 +591,7 @@ function _rounding_offsets(edgespec,z_dir=1) = _bezcorner([[0,0],[0,z_dir*abs(joint)],[-joint,z_dir*abs(joint)]], k, $fn=N+2) ) ) - - quant(extra > 0? concat(offsets, [last(offsets)+[0,z_dir*extra]]) : offsets, 1/1024); + quant(extra > 0 && len(offsets)>0 ? concat(offsets, [last(offsets)+[0,z_dir*extra]]) : offsets, 1/1024);