chiark / gitweb /
Add imageToMesh tool.
[cura.git] / Cura / util / drawingLoader / drawing.py
index 509aeffa0a82e1b14cff9a32dbd30cdc5537a70c..c8871a285119f30d837dbff1e22c31a074140c00 100644 (file)
@@ -59,6 +59,8 @@ class Path(object):
                        p1 = self._nodes[self._nodes.index(node) - 1].position
 
                p2 = node.position
+               if abs(p1 - p2) < 0.0001:
+                       return p1, 0.0, math.pi, complex(0.0, 0.0)
                rot = math.radians(node.rotation)
                r = node.radius