summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elements/clone.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/elements/clone.py b/lib/elements/clone.py
index 6f667836..24cdd07b 100644
--- a/lib/elements/clone.py
+++ b/lib/elements/clone.py
@@ -80,17 +80,17 @@ class Clone(EmbroideryElement):
elements.extend(node_to_elements(child, True))
return elements
- def to_stitch_groups(self, last_patch=None) -> List[StitchGroup]:
+ def to_stitch_groups(self, last_stitch_group=None) -> List[StitchGroup]:
with self.clone_elements() as elements:
- patches = []
+ stitch_groups = []
for element in elements:
- stitch_groups = element.to_stitch_groups(last_patch)
- if len(stitch_groups):
- last_patch = stitch_groups[-1]
- patches.extend(stitch_groups)
+ element_stitch_groups = element.to_stitch_groups(last_stitch_group)
+ if len(element_stitch_groups):
+ last_stitch_group = element_stitch_groups[-1]
+ stitch_groups.extend(element_stitch_groups)
- return patches
+ return stitch_groups
@contextmanager
def clone_elements(self) -> Generator[List[EmbroideryElement], None, None]: