Skip to content

Commit 7edecd7

Browse files
authored
Merge pull request #130 from rsheldiii/v1/stem-slop-fix
V1 stem slop fix
2 parents a1ec4c3 + 160c471 commit 7edecd7

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

customizer.scad

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -941,26 +941,26 @@ module blank() {
941941
children();
942942
}
943943

944-
module cherry(slop) {
945-
$stem_slop = slop ? slop : $stem_slop;
944+
module cherry(slop = undef) {
945+
$stem_slop = slop != undef ? slop : $stem_slop;
946946
$stem_type = "cherry";
947947
children();
948948
}
949949

950-
module alps(slop) {
951-
$stem_slop = slop ? slop : $stem_slop;
950+
module alps(slop = undef) {
951+
$stem_slop = slop != undef ? slop : $stem_slop;
952952
$stem_type = "alps";
953953
children();
954954
}
955955

956-
module rounded_cherry(slop) {
957-
$stem_slop = slop ? slop : $stem_slop;
956+
module rounded_cherry(slop = undef) {
957+
$stem_slop = slop != undef ? slop : $stem_slop;
958958
$stem_type = "rounded_cherry";
959959
children();
960960
}
961961

962-
module box_cherry(slop) {
963-
$stem_slop = slop ? slop : $stem_slop;
962+
module box_cherry(slop = undef) {
963+
$stem_slop = slop != undef ? slop : $stem_slop;
964964
$stem_type = "box_cherry";
965965
children();
966966
}

src/key_transformations.scad

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,26 @@ module blank() {
9292
children();
9393
}
9494

95-
module cherry(slop) {
96-
$stem_slop = slop ? slop : $stem_slop;
95+
module cherry(slop = undef) {
96+
$stem_slop = slop != undef ? slop : $stem_slop;
9797
$stem_type = "cherry";
9898
children();
9999
}
100100

101-
module alps(slop) {
102-
$stem_slop = slop ? slop : $stem_slop;
101+
module alps(slop = undef) {
102+
$stem_slop = slop != undef ? slop : $stem_slop;
103103
$stem_type = "alps";
104104
children();
105105
}
106106

107-
module rounded_cherry(slop) {
108-
$stem_slop = slop ? slop : $stem_slop;
107+
module rounded_cherry(slop = undef) {
108+
$stem_slop = slop != undef ? slop : $stem_slop;
109109
$stem_type = "rounded_cherry";
110110
children();
111111
}
112112

113-
module box_cherry(slop) {
114-
$stem_slop = slop ? slop : $stem_slop;
113+
module box_cherry(slop = undef) {
114+
$stem_slop = slop != undef ? slop : $stem_slop;
115115
$stem_type = "box_cherry";
116116
children();
117117
}

0 commit comments

Comments
 (0)