summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-06-22 15:22:34 +0200
committerGitHub <noreply@github.com>2022-06-22 15:22:34 +0200
commitb6bde000fe675ed725d7d5dbd7db3f44fb33af0e (patch)
tree2c856ac51c563b6c918ab3041ac29c5106e7a06d /lib/api
parent75fc4ce8695f6fb6c7cc108fcf458ad36bbd00c1 (diff)
Option to drop short stitches (#1693)
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/stitch_plan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/stitch_plan.py b/lib/api/stitch_plan.py
index 6d64d781..c70efd98 100644
--- a/lib/api/stitch_plan.py
+++ b/lib/api/stitch_plan.py
@@ -18,7 +18,8 @@ def get_stitch_plan():
metadata = g.extension.get_inkstitch_metadata()
collapse_len = metadata['collapse_len_mm']
+ min_stitch_len = metadata['min_stitch_len_mm']
patches = g.extension.elements_to_stitch_groups(g.extension.elements)
- stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len)
+ stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, min_stitch_len=min_stitch_len)
return jsonify(stitch_plan)