diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-05-23 09:54:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 09:54:59 +0200 |
| commit | d8043e0a53c6a5af89258cca65dd15382030f809 (patch) | |
| tree | 0fbe6bb7b0f84f2ea6883e68ae02b0645c141100 /lib | |
| parent | 87f7e6124b2778982a9b7defc34a50b238fdcdab (diff) | |
knockdown: square is a rect (#3747)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/extensions/knockdown_fill.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/extensions/knockdown_fill.py b/lib/extensions/knockdown_fill.py index fc0b51cc..e8ac7d3a 100644 --- a/lib/extensions/knockdown_fill.py +++ b/lib/extensions/knockdown_fill.py @@ -106,11 +106,11 @@ class KnockdownFill(InkstitchExtension): for interior in polygon.interiors: d += str(Path(interior.coords)) - if self.options.shape == 'square': - square = polygon.envelope - offset_square = self._apply_offset(square, self.options.shape_offset, self.options.shape_join_style) - offset_square = offset_square.reverse() - d = str(Path(offset_square.exterior.coords)) + d + if self.options.shape == 'rect': + rect = polygon.envelope + offset_rect = self._apply_offset(rect, self.options.shape_offset, self.options.shape_join_style) + offset_rect = offset_rect.reverse() + d = str(Path(offset_rect.exterior.coords)) + d elif self.options.shape == 'circle': circle = minimum_bounding_circle(polygon) offset_circle = self._apply_offset(circle, self.options.shape_offset, self.options.shape_join_style) |
