From 160c47150d2df618cd445bdfb5d6ce4c82e01e1c Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 19 Feb 2022 20:03:54 -0500 Subject: [PATCH] backport stem slop fix --- customizer.scad | 16 ++++++++-------- src/key_transformations.scad | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/customizer.scad b/customizer.scad index 8cfe929..3129a37 100644 --- a/customizer.scad +++ b/customizer.scad @@ -941,26 +941,26 @@ module blank() { children(); } -module cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "cherry"; children(); } -module alps(slop) { - $stem_slop = slop ? slop : $stem_slop; +module alps(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "alps"; children(); } -module rounded_cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module rounded_cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "rounded_cherry"; children(); } -module box_cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module box_cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "box_cherry"; children(); } diff --git a/src/key_transformations.scad b/src/key_transformations.scad index c47289c..6ae4f52 100644 --- a/src/key_transformations.scad +++ b/src/key_transformations.scad @@ -92,26 +92,26 @@ module blank() { children(); } -module cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "cherry"; children(); } -module alps(slop) { - $stem_slop = slop ? slop : $stem_slop; +module alps(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "alps"; children(); } -module rounded_cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module rounded_cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "rounded_cherry"; children(); } -module box_cherry(slop) { - $stem_slop = slop ? slop : $stem_slop; +module box_cherry(slop = undef) { + $stem_slop = slop != undef ? slop : $stem_slop; $stem_type = "box_cherry"; children(); }