reinstitute stabilizer logic

need to check the blame on this
This commit is contained in:
Bob 2019-10-12 18:46:31 -04:00
parent 1fe1a23f29
commit e05fc69e35
2 changed files with 5 additions and 3 deletions

View File

@ -290,7 +290,8 @@ module key(inset = false) {
if ($stem_type != "disable" || ($stabilizers != [] && $stabilizer_type != "disable")) {
dished($keytop_thickness, $inverted_dish) {
translate([0, 0, $stem_inset]) {
/* if ($stabilizer_type != "disable") stems_for($stabilizers, $stabilizer_type); */
if ($stabilizer_type != "disable") stems_for($stabilizers, $stabilizer_type);
if ($stem_type != "disable") stems_for($stem_positions, $stem_type);
}
}

View File

@ -41,7 +41,7 @@ module rotated() {
module stabilized(mm=12, vertical = false, type=undef) {
if (vertical) {
$stabilizer_type = type ? type : $stabilizer_type ? $stabilizer_type : "costar_stabilizer";
$stabilizer_type = (type ? type : ($stabilizer_type ? $stabilizer_type : "costar_stabilizer"));
$stabilizers = [
[0, mm],
[0, -mm]
@ -49,7 +49,8 @@ module stabilized(mm=12, vertical = false, type=undef) {
children();
} else {
$stabilizer_type = type ? type : $stabilizer_type ? $stabilizer_type : "costar_stabilizer";
$stabilizer_type = (type ? type : ($stabilizer_type ? $stabilizer_type : "costar_stabilizer"));
$stabilizers = [
[mm, 0],