Path should create a Path, not a Polygon

This commit is contained in:
Jan Petykiewicz 2020-05-11 19:04:25 -07:00
parent 9bfb3bef9f
commit bd4085365f

View File

@ -351,7 +351,7 @@ class Path(Shape):
return (type(self), reordered_vertices.data.tobytes(), width0, self.cap, self.layer), \ return (type(self), reordered_vertices.data.tobytes(), width0, self.cap, self.layer), \
(offset, scale/norm_value, rotation, False, self.dose), \ (offset, scale/norm_value, rotation, False, self.dose), \
lambda: Polygon(reordered_vertices*norm_value, width=self.width*norm_value, lambda: Path(reordered_vertices*norm_value, width=self.width*norm_value,
cap=self.cap, layer=self.layer) cap=self.cap, layer=self.layer)
def clean_vertices(self) -> 'Path': def clean_vertices(self) -> 'Path':