Ensure stem does not come out of the key

This commit is contained in:
Muhammad Amirul Ashraf 2020-05-31 09:48:38 +08:00
parent fa49ee0c70
commit d62afcd878

View File

@ -404,6 +404,7 @@ module key(inset = false) {
// both stem and support are optional // both stem and support are optional
if ($stem_type != "disable" || ($stabilizers != [] && $stabilizer_type != "disable")) { if ($stem_type != "disable" || ($stabilizers != [] && $stabilizer_type != "disable")) {
inside()
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);