summaryrefslogtreecommitdiff
path: root/lib/stitches
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-08-21 15:20:17 +0200
committerGitHub <noreply@github.com>2024-08-21 15:20:17 +0200
commitd26ec2187427d68193748eeb534a03cc6ba9d2ea (patch)
tree3250ca78e91f6a9f1f73b46ce4353b663210bed7 /lib/stitches
parent47893d52577a10143b51e27ea3addaa5425458ff (diff)
auto satin: transfer min jump length from satins on strokes (#3154)
Diffstat (limited to 'lib/stitches')
-rw-r--r--lib/stitches/auto_satin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stitches/auto_satin.py b/lib/stitches/auto_satin.py
index e84e2631..7d3cb05e 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)