summaryrefslogtreecommitdiff
path: root/lib/stitch_plan
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-04-10 10:21:59 +0200
committerGitHub <noreply@github.com>2022-04-10 10:21:59 +0200
commit7ecfa7a2e6b2c971f35d8264c35b3efdae212489 (patch)
tree195e932b557e9d34ace426cac0d8a599479da654 /lib/stitch_plan
parentc575aeda96d389de29389c9e6e46395e1b938244 (diff)
Scale and toggle commands (etc) (#1611)
* scale and toggle commands * fix tie in when first stitch is a jump stitch * set tie modus to 3 for cutwork objects * cutwork set stitch length * fix bug in remove embroidery settings
Diffstat (limited to 'lib/stitch_plan')
-rw-r--r--lib/stitch_plan/stitch_plan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index a501391d..74caa54a 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -40,12 +40,12 @@ def stitch_groups_to_stitch_plan(stitch_groups, collapse_len=None, disable_ties=
color_block = stitch_plan.new_color_block(color=stitch_group.color)
# always start a color with a JUMP to the first stitch position
- color_block.add_stitch(stitch_group.stitches[0], jump=True)
+ color_block.add_stitch(stitch_group.stitches[0], jump=True, tie_modus=stitch_group.tie_modus)
else:
if (len(color_block) and
((stitch_group.stitches[0] - color_block.stitches[-1]).length() > collapse_len or
color_block.stitches[-1].force_lock_stitches)):
- color_block.add_stitch(stitch_group.stitches[0], jump=True)
+ color_block.add_stitch(stitch_group.stitches[0], jump=True, tie_modus=stitch_group.tie_modus)
color_block.add_stitches(stitches=stitch_group.stitches, tie_modus=stitch_group.tie_modus,
force_lock_stitches=stitch_group.force_lock_stitches, no_ties=stitch_group.stitch_as_is)