summaryrefslogtreecommitdiff
path: root/lib/elements/polyline.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2021-08-07 10:57:53 -0400
committerLex Neva <github.com@lexneva.name>2021-08-07 10:57:53 -0400
commitc1e6558f7852def419adfbeb087b2194e6030a2c (patch)
tree31d25ceb4aa01a6909859c5a769517bd73d47543 /lib/elements/polyline.py
parenta5d7ffaffd0b73b5848b7d55ea1f571ea94fd5a7 (diff)
rename Patch to StitchGroup
Diffstat (limited to 'lib/elements/polyline.py')
-rw-r--r--lib/elements/polyline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/polyline.py b/lib/elements/polyline.py
index 5ea00508..f63dfc3b 100644
--- a/lib/elements/polyline.py
+++ b/lib/elements/polyline.py
@@ -9,7 +9,7 @@ from shapely import geometry as shgeo
from ..i18n import _
from ..utils import cache
from ..utils.geometry import Point
-from .element import EmbroideryElement, Patch, param
+from .element import EmbroideryElement, StitchGroup, param
from .validation import ValidationWarning
@@ -101,7 +101,7 @@ class Polyline(EmbroideryElement):
yield PolylineWarning(self.points[0])
def to_patches(self, last_patch):
- patch = Patch(color=self.color)
+ patch = StitchGroup(color=self.color)
for stitch in self.stitches:
patch.add_stitch(Point(*stitch))