Commit 71c382f3 authored by sumpfralle's avatar sumpfralle

prevent exceptions for empty paths


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@469 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 43413ed2
......@@ -63,6 +63,7 @@ class ContourCutter:
if paths:
for p in paths:
p.append(p.points[0])
self.paths.extend(paths)
if paths:
self.paths.extend(paths)
self.pe = None
......@@ -65,5 +65,6 @@ class PolygonCutter:
p.append(points[-i-1])
p.append(points[i])
paths.append(p)
self.paths.extend(paths)
if paths:
self.paths.extend(paths)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment