From d26ec2187427d68193748eeb534a03cc6ba9d2ea Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:20:17 +0200 Subject: [PATCH] auto satin: transfer min jump length from satins on strokes (#3154) --- lib/stitches/auto_satin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/stitches/auto_satin.py b/lib/stitches/auto_satin.py index e84e26319..7d3cb05e4 100644 --- a/lib/stitches/auto_satin.py +++ b/lib/stitches/auto_satin.py @@ -243,6 +243,8 @@ class RunningStitch(object): original_element.node.get(INKSTITCH_ATTRIBS['center_walk_underlay_stitch_length_mm'], '') or \ original_element.node.get(INKSTITCH_ATTRIBS['contour_underlay_stitch_length_mm'], '') + self.min_jump_stitch_length = original_element.node.get('inkstitch:min_jump_stitch_length_mm', None) + def to_element(self): node = inkex.PathElement() d = str(inkex.paths.CubicSuperPath(line_strings_to_csp([self.path]))) @@ -252,6 +254,8 @@ class RunningStitch(object): style = inkex.Style(self.original_element.node.get('style', '')) + dasharray node.set("style", str(style)) node.set(INKSTITCH_ATTRIBS['running_stitch_length_mm'], self.running_stitch_length) + if self.min_jump_stitch_length is not None: + node.set('inkstitch:min_jump_stitch_length_mm', self.min_jump_stitch_length) stroke = Stroke(node)