diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-02-27 16:05:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 16:05:52 +0100 |
| commit | ec076315bb8b5f901670fee1c06db028242b21fd (patch) | |
| tree | 17cd3413f48cad338d95452d2d0aac96aac44d01 /lib/elements/polyline.py | |
| parent | ed4aa55a733986436853e2ee7ad22f757b09fcb1 (diff) | |
Various lock stitch options (#2006)
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/elements/polyline.py')
| -rw-r--r-- | lib/elements/polyline.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elements/polyline.py b/lib/elements/polyline.py index 5086c705..a33b75de 100644 --- a/lib/elements/polyline.py +++ b/lib/elements/polyline.py @@ -6,12 +6,12 @@ from inkex import Path from shapely import geometry as shgeo -from .element import EmbroideryElement, param -from .validation import ValidationWarning from ..i18n import _ from ..stitch_plan import StitchGroup from ..utils import cache from ..utils.geometry import Point +from .element import EmbroideryElement, param +from .validation import ValidationWarning class PolylineWarning(ValidationWarning): @@ -95,7 +95,7 @@ class Polyline(EmbroideryElement): yield PolylineWarning(self.path[0][0][0]) def to_stitch_groups(self, last_patch): - patch = StitchGroup(color=self.color) + patch = StitchGroup(color=self.color, lock_stitches=(None, None)) for stitch in self.stitches: patch.add_stitch(Point(*stitch)) |
