fix spacebar() assuming sideways_cylindrical

This commit is contained in:
Bob 2022-02-19 20:32:56 -05:00
parent 9b52a91db9
commit db30aa2066
2 changed files with 4 additions and 4 deletions

View File

@ -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; function unit_length(length) = $unit * (length - 1) + 18.16;
module spacebar() { module spacebar() {
$inverted_dish = true; $inverted_dish = $dish_type != "disable";
$dish_type = "sideways cylindrical"; $dish_type = $dish_type != "disable" ? "sideways cylindrical" : "disable";
6_25u() stabilized(mm=50) children(); 6_25u() stabilized(mm=50) children();
} }

View File

@ -1,8 +1,8 @@
include <functions.scad> include <functions.scad>
module spacebar() { module spacebar() {
$inverted_dish = true; $inverted_dish = $dish_type != "disable";
$dish_type = "sideways cylindrical"; $dish_type = $dish_type != "disable" ? "sideways cylindrical" : "disable";
6_25u() stabilized(mm=50) children(); 6_25u() stabilized(mm=50) children();
} }