diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2021-12-09 15:05:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-09 15:05:21 +0100 |
| commit | 36f7610cc0844a034ba068b549332cab3ef7b033 (patch) | |
| tree | e63e66d8313df795d26efb42833f103f3554971a /lib/elements | |
| parent | 41ace3a9e53b52b4271554d7aedd88d533ee5f5e (diff) | |
Force lock stitches option/extension and some typos (#1471)
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/element.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index f06982b2..05bfd353 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -208,6 +208,18 @@ class EmbroideryElement(object): return self.get_int_param("ties", 0) @property + @param('force_lock_stitches', + _('Force lock stitches'), + tooltip=_('Sew lock stitches after sewing this element, ' + 'even if the distance to the next object is shorter than defined by the collapse length value in the Ink/Stitch preferences.'), + type='boolean', + default=False, + sort_index=5) + @cache + def force_lock_stitches(self): + return self.get_boolean_param('force_lock_stitches', False) + + @property def path(self): # A CSP is a "cubic superpath". # @@ -312,6 +324,7 @@ class EmbroideryElement(object): for patch in patches: patch.tie_modus = self.ties + patch.force_lock_stitches = self.force_lock_stitches if patches: patches[-1].trim_after = self.has_command("trim") or self.trim_after |
