auto satin: transfer min jump length from satins on strokes (#3154)

capellan-more-ci-fiddling dev-build-capellan-dev-3.1.0-clone-fixes
Kaalleen 2024-08-21 15:20:17 +02:00 zatwierdzone przez GitHub
rodzic 47893d5257
commit d26ec21874
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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)