summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/stitch_group.py
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2023-01-08 18:33:02 -0500
committerGitHub <noreply@github.com>2023-01-08 18:33:02 -0500
commitfbf57b92d2f37814e0029a1e5b8b413f76697463 (patch)
treea5c302b6e093edbca4c20b18ebd9b14dea29da11 /lib/stitch_plan/stitch_group.py
parenta7b2122d91703d72177cf980cecbef8fca3d54ec (diff)
parent8d13e09bc41f9cfeaa0cd32cd75fa4da07afc03c (diff)
Merge pull request #1918 from inkstitch/george-steel/random-base-satin
Add randomization options to satin columns and rewrite split stitches
Diffstat (limited to 'lib/stitch_plan/stitch_group.py')
-rw-r--r--lib/stitch_plan/stitch_group.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stitch_plan/stitch_group.py b/lib/stitch_plan/stitch_group.py
index 21beebe1..6dbeb9e5 100644
--- a/lib/stitch_plan/stitch_group.py
+++ b/lib/stitch_plan/stitch_group.py
@@ -43,14 +43,14 @@ class StitchGroup:
# This method allows `len(patch)` and `if patch:
return len(self.stitches)
- def add_stitches(self, stitches):
+ def add_stitches(self, stitches, tags=None):
for stitch in stitches:
- self.add_stitch(stitch)
+ self.add_stitch(stitch, tags=tags)
- def add_stitch(self, stitch):
+ def add_stitch(self, stitch, tags=None):
if not isinstance(stitch, Stitch):
# probably a Point
- stitch = Stitch(stitch)
+ stitch = Stitch(stitch, tags=tags)
self.stitches.append(stitch)