From bd4085365f48f6bd2e3f644eb61613d8240a0a49 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 11 May 2020 19:04:25 -0700 Subject: [PATCH] Path should create a Path, not a Polygon --- masque/shapes/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/shapes/path.py b/masque/shapes/path.py index 2ffdd35..e320f4b 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -351,8 +351,8 @@ class Path(Shape): return (type(self), reordered_vertices.data.tobytes(), width0, self.cap, self.layer), \ (offset, scale/norm_value, rotation, False, self.dose), \ - lambda: Polygon(reordered_vertices*norm_value, width=self.width*norm_value, - cap=self.cap, layer=self.layer) + lambda: Path(reordered_vertices*norm_value, width=self.width*norm_value, + cap=self.cap, layer=self.layer) def clean_vertices(self) -> 'Path': """