chiark / gitweb /
fairphone-case: CaseBase_rhsflip: make a global (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 14:56:51 +0000 (14:56 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 14:56:52 +0000 (14:56 +0000)
This allows flipped things to tell which side they are on.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index eb9e445..a8c393f 100644 (file)
@@ -203,9 +203,9 @@ module ButtonPlan(l, deep, cut){
 }
 
 module CaseBase_rhsflip(yn=[0,1]) {
-  for (rhs=yn) {
+  for ($rhsflip=yn) {
     translate([phone_width/2, 0, 0])
-      mirror([rhs,0,0])
+      mirror([$rhsflip,0,0])
       translate([-phone_width/2, 0, 0])
       children();
   }