fix center walk underlay repeats (#2895)

pull/2903/head
Kaalleen 2024-05-12 20:19:56 +02:00 zatwierdzone przez GitHub
rodzic af8b832191
commit 747ae5e3b7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1213,11 +1213,13 @@ class SatinColumn(EmbroideryElement):
points = [points[0] for points in pairs]
stitches = running_stitch.even_running_stitch(points, self.center_walk_underlay_stitch_length, self.center_walk_underlay_stitch_tolerance)
repeated_stitches = []
for i in range(self.center_walk_underlay_repeats - 1):
if i % 2 == 0:
stitches.extend(reversed(stitches))
repeated_stitches.extend(reversed(stitches))
else:
stitches.extend(stitches)
repeated_stitches.extend(stitches)
stitches.extend(repeated_stitches)
return StitchGroup(
color=self.color,