mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2024-11-26 14:54:21 +00:00
reinstitute stabilizer logic
need to check the blame on this
This commit is contained in:
parent
1fe1a23f29
commit
e05fc69e35
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user