From: Ian Jackson Date: Sun, 21 Jan 2018 14:30:07 +0000 (+0000) Subject: fairphone-case: fix SideButton calculations X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=6b4c1cd333082cf2a373a884e78e74cd6f57b53b;p=reprap-play.git fairphone-case: fix SideButton calculations nfc with the one current caller Signed-off-by: Ian Jackson --- diff --git a/fairphone-case.scad b/fairphone-case.scad index 07a2ca1..572b6e0 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -265,8 +265,8 @@ module SideButton(y, y_ref_sign, l){ // 0 y is centre of button in coordinate system $button_l= l; eff_y = y_ref_sign > 0 ? -bumper [1] -y -l/2 : - y_ref_sign < 0 ? (-phone +bumper)[1] +y +l/2 : - -y; + y_ref_sign < 0 ? (-phone -bumper)[1] +y +l/2 : + y; echo(eff_y); translate([0, eff_y, 0]) children();