mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-02-18 15:20:45 +00:00
reinstitute stabilizer logic
need to check the blame on this
This commit is contained in:
parent
1fe1a23f29
commit
e05fc69e35
2 changed files with 5 additions and 3 deletions
|
@ -290,7 +290,8 @@ module key(inset = false) {
|
||||||
if ($stem_type != "disable" || ($stabilizers != [] && $stabilizer_type != "disable")) {
|
if ($stem_type != "disable" || ($stabilizers != [] && $stabilizer_type != "disable")) {
|
||||||
dished($keytop_thickness, $inverted_dish) {
|
dished($keytop_thickness, $inverted_dish) {
|
||||||
translate([0, 0, $stem_inset]) {
|
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);
|
if ($stem_type != "disable") stems_for($stem_positions, $stem_type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ module rotated() {
|
||||||
|
|
||||||
module stabilized(mm=12, vertical = false, type=undef) {
|
module stabilized(mm=12, vertical = false, type=undef) {
|
||||||
if (vertical) {
|
if (vertical) {
|
||||||
$stabilizer_type = type ? type : $stabilizer_type ? $stabilizer_type : "costar_stabilizer";
|
$stabilizer_type = (type ? type : ($stabilizer_type ? $stabilizer_type : "costar_stabilizer"));
|
||||||
$stabilizers = [
|
$stabilizers = [
|
||||||
[0, mm],
|
[0, mm],
|
||||||
[0, -mm]
|
[0, -mm]
|
||||||
|
@ -49,7 +49,8 @@ module stabilized(mm=12, vertical = false, type=undef) {
|
||||||
|
|
||||||
children();
|
children();
|
||||||
} else {
|
} else {
|
||||||
$stabilizer_type = type ? type : $stabilizer_type ? $stabilizer_type : "costar_stabilizer";
|
$stabilizer_type = (type ? type : ($stabilizer_type ? $stabilizer_type : "costar_stabilizer"));
|
||||||
|
|
||||||
|
|
||||||
$stabilizers = [
|
$stabilizers = [
|
||||||
[mm, 0],
|
[mm, 0],
|
||||||
|
|
Loading…
Reference in a new issue