@@ -5991,27 +5991,22 @@ module key(inset = false) {
59915991 if ($ clearance_check) % clearance_check();
59925992 }
59935993
5994- // both stem and support are optional
5995- if ($ stem_type != "disable" || ($ stabilizers != [] && $ stabilizer_type != "disable" )) {
5996- dished($ keytop_thickness, $ inverted_dish) {
5997- translate ([0 , 0 , $ stem_inset]) {
5998- if ($ stabilizer_type != "disable" ) stems_for($ stabilizers, $ stabilizer_type);
5999-
6000- if ($ stem_type != "disable" ) stems_for($ stem_positions, $ stem_type);
6001- }
6002- }
6003- }
6004-
6005- if ($ support_type != "disable" ){
6006- inside() {
6007- translate ([0 , 0 , $ stem_inset]) {
5994+ inside() {
5995+ translate ([0 , 0 , $ stem_inset]) {
5996+ if ($ support_type != "disable" ){
60085997 if ($ stabilizer_type != "disable" ) support_for($ stabilizers, $ stabilizer_type);
60095998
60105999 // always render stem support even if there isn't a stem.
60116000 // rendering flat support w/no stem is much more common than a hollow keycap
60126001 // so if you want a hollow keycap you'll have to turn support off entirely
60136002 support_for($ stem_positions, $ stem_type);
60146003 }
6004+
6005+ if ($ stem_type != "disable" || ($ stabilizers != [] && $ stabilizer_type != "disable" )) {
6006+ if ($ stabilizer_type != "disable" ) stems_for($ stabilizers, $ stabilizer_type);
6007+
6008+ if ($ stem_type != "disable" ) stems_for($ stem_positions, $ stem_type);
6009+ }
60156010 }
60166011 }
60176012}
0 commit comments