From 36f7610cc0844a034ba068b549332cab3ef7b033 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:05:21 +0100 Subject: Force lock stitches option/extension and some typos (#1471) --- lib/elements/element.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/elements/element.py') 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 @@ -207,6 +207,18 @@ class EmbroideryElement(object): def ties(self): 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 -- cgit v1.2.3