diff options
| -rw-r--r-- | lib/elements/fill_stitch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index 939d42d0..f8db39d5 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -772,7 +772,10 @@ class FillStitch(EmbroideryElement): # biggest path. paths = self.paths paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True) - return shgeo.MultiPolygon([(paths[0], paths[1:])]) + shape = shgeo.MultiPolygon([(paths[0], paths[1:])]) + if self.node.style('fill-rule') == 'nonzero': + shape = shape.buffer(0) + return shape @property @cache |
