troubleshoot: pointer on rail (#2657)

pull/2666/head
Kaalleen 2023-12-28 06:53:29 +01:00 zatwierdzone przez GitHub
rodzic c0bcdb6e25
commit 28dba29684
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -684,10 +684,10 @@ class SatinColumn(EmbroideryElement):
if len(self.csp) < 2:
yield TooFewPathsError((0, 0))
elif len(self.rails) < 2:
yield TooFewPathsError(self.shape.centroid)
yield TooFewPathsError(self.flattened_rails[0].representative_point())
if not self.to_stitch_groups():
yield NotStitchableError(self.shape.centroid)
yield NotStitchableError(self.flattened_rails[0].representative_point())
def _center_walk_is_odd(self):
return self.center_walk_underlay_repeats % 2 == 1