From db30aa206632463bdc2a4ffd2220fb724a966ceb Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 19 Feb 2022 20:32:56 -0500 Subject: [PATCH] fix spacebar() assuming sideways_cylindrical --- customizer.scad | 4 ++-- src/key_types.scad | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/customizer.scad b/customizer.scad index b5449e2..15d692f 100644 --- a/customizer.scad +++ b/customizer.scad @@ -874,8 +874,8 @@ function add_rounding(p, radius)=[for(i=[0:len(p)-1])[p[i].x,p[i].y, radius]]; function unit_length(length) = $unit * (length - 1) + 18.16; module spacebar() { - $inverted_dish = true; - $dish_type = "sideways cylindrical"; + $inverted_dish = $dish_type != "disable"; + $dish_type = $dish_type != "disable" ? "sideways cylindrical" : "disable"; 6_25u() stabilized(mm=50) children(); } diff --git a/src/key_types.scad b/src/key_types.scad index 8438399..1163827 100644 --- a/src/key_types.scad +++ b/src/key_types.scad @@ -1,8 +1,8 @@ include module spacebar() { - $inverted_dish = true; - $dish_type = "sideways cylindrical"; + $inverted_dish = $dish_type != "disable"; + $dish_type = $dish_type != "disable" ? "sideways cylindrical" : "disable"; 6_25u() stabilized(mm=50) children(); }