fix zigzag line to satin (#2917)

pull/2918/head
Kaalleen 2024-05-17 09:44:09 +02:00 zatwierdzone przez GitHub
rodzic 138aa78cb7
commit 9188d6aba7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -170,7 +170,7 @@ class ZigzagLineToSatin(InkstitchExtension):
path_commands.append(inkex.paths.Curve(*start, *end, *point))
# recalculate rungs for zigzag pattern
if self.options.pattern == 'zigzag' and (has_equal_rail_point_count or i <= len(r)) and (not self.options.reduce_rungs or j == 0):
if self.options.pattern == 'zigzag' and i <= len(r) and (not self.options.reduce_rungs or j == 0):
# in zigzag mode we do have alternating points on rails
# when smoothing them out, rungs may not intersect anymore
# so we need to find a spot on the smoothed rail to ensure the correct length