summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-01-01 07:54:14 +0100
committerGitHub <noreply@github.com>2025-01-01 07:54:14 +0100
commit8c7c208b5e745146b2226e905db3f4a038e21939 (patch)
tree4ce2eeacd3d3a17315ab4a2220e3795051ba4fd4
parent44dd9bada3faabc0a7722c23b88d425112e48271 (diff)
fill: first stitch correction (#3391)
-rw-r--r--lib/elements/fill_stitch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index d7e92433..41ac1de1 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -894,7 +894,8 @@ class FillStitch(EmbroideryElement):
@property
def first_stitch(self):
# Serves as a reverence point for the end point of the previous element
- # This isn't really used for fill stitches as they always make their first stitch point dependent on the previous element itself
+ if self.get_command('starting_point'):
+ return shgeo.Point(*self.get_command('starting_point').target_point)
return None
def get_starting_point(self, previous_stitch_group):