chiark / gitweb /
curveopt: fix handling of empty lines from findcurve
[moebius3.git] / scad.py
diff --git a/scad.py b/scad.py
index 3aca0f9f99a9b3c3ac5df26f0b806816bce1b545..f46d32edf3156d0498b3a376b2e318bf194a7abc 100644 (file)
--- a/scad.py
+++ b/scad.py
@@ -8,6 +8,7 @@ class ScadObject:
     so._triangles = []
 
   def writeout_core(so, scalefactor=1):
+    if not so._points: return
     print('scale(%s) polyhedron(points=[' % scalefactor)
     for p in so._points: print(p, ',')
     print('],faces=[')