From eb286717ecad28da65871a954030160c73c3227c Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Wed, 9 Nov 2022 18:34:43 -0500 Subject: [PATCH] fix joiners bug --- joiners.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/joiners.scad b/joiners.scad index 4bfc9ca..d828409 100644 --- a/joiners.scad +++ b/joiners.scad @@ -625,13 +625,13 @@ module dovetail(gender, width, height, slide, h, w, angle, slope, thickness, tap orient = is_def(orient) ? orient : gender == "female" ? DOWN : UP; + count = num_defined([angle,slope]); + count2 = num_defined([taper,back_width]); + count3 = num_defined([chamfer, radius]); dummy = assert(count<=1, "Do not specify both angle and slope") assert(count2<=1, "Do not specify both taper and back_width") assert(count3<=1 || (radius==0 && chamfer==0), "Do not specify both chamfer and radius"); - count = num_defined([angle,slope]); - count2 = num_defined([taper,back_width]); - count3 = num_defined([chamfer, radius]); slope = is_def(slope) ? slope : is_def(angle) ? 1/tan(angle) : 6; extra_slop = gender == "female" ? 2*get_slop() : 0;