diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-15 08:51:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 08:51:40 +0100 |
| commit | 89b472d319d7247fb2ff19eb8d264a80baff8df7 (patch) | |
| tree | 76d3e974dfe6d434040c6061872610fd36c52010 /lib/elements | |
| parent | 732de4fecb952dad58fabe51c7e7dc382a04383b (diff) | |
Element info: take pattern into account (#3581)
* element info: take pattern into account
* ensure multi-polygon for fill nonzero shapes
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/fill_stitch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index ee77cd60..923ce23f 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -774,7 +774,7 @@ class FillStitch(EmbroideryElement): paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True) shape = shgeo.MultiPolygon([(paths[0], paths[1:])]) if self.node.style('fill-rule') == 'nonzero': - shape = shape.buffer(0) + shape = ensure_multi_polygon(shape.buffer(0)) return shape @property |
