diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-06-22 15:22:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-22 15:22:34 +0200 |
| commit | b6bde000fe675ed725d7d5dbd7db3f44fb33af0e (patch) | |
| tree | 2c856ac51c563b6c918ab3041ac29c5106e7a06d /lib/extensions/output.py | |
| parent | 75fc4ce8695f6fb6c7cc108fcf458ad36bbd00c1 (diff) | |
Option to drop short stitches (#1693)
Diffstat (limited to 'lib/extensions/output.py')
| -rw-r--r-- | lib/extensions/output.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/extensions/output.py b/lib/extensions/output.py index 7cc12ee0..a3f35d2f 100644 --- a/lib/extensions/output.py +++ b/lib/extensions/output.py @@ -52,8 +52,10 @@ class Output(InkstitchExtension): self.metadata = self.get_inkstitch_metadata() collapse_len = self.metadata['collapse_len_mm'] + min_stitch_len = self.metadata['min_stitch_len_mm'] patches = self.elements_to_stitch_groups(self.elements) - stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, disable_ties=self.settings.get('laser_mode', False)) + stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, disable_ties=self.settings.get('laser_mode', False), + min_stitch_len=min_stitch_len) temp_file = tempfile.NamedTemporaryFile(suffix=".%s" % self.file_extension, delete=False) |
