acorn: only render threads if thread_height is nonzero
authorClinton Ebadi <clinton@unknownlamer.org>
Mon, 30 Sep 2019 03:19:36 +0000 (23:19 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Mon, 30 Sep 2019 03:19:36 +0000 (23:19 -0400)
acorn/acorn-threads.scad

index 7173ae5..d5e7fe2 100644 (file)
@@ -120,7 +120,9 @@ module acorn (thread_pitch = 3.0,
               }
 
 
-              translate ([0, 0, -0.01]) acorn_thread (internal = true, ring = false);
+              if (thread_height != 0) {
+                   translate ([0, 0, -0.01]) acorn_thread (internal = true, ring = false);
+              }
          }
      }