satin: ignore ending_point when it is already at the end (#3460)

pull/3461/head dev-build-claudine-correct_califragilistic_description
Kaalleen 2025-01-25 16:08:35 +01:00 zatwierdzone przez GitHub
rodzic 82c6af07a5
commit 7fcb5fcfb2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -1821,6 +1821,9 @@ class SatinColumn(EmbroideryElement):
if end_point is None and self.end_at_nearest_point and next_stitch is not None:
end_point = nearest_points(next_stitch, self.shape)[1]
end_point = Point(*list(end_point.coords[0]))
# if we are already near to the end, we won't need to specify an ending point
if end_point and shgeo.Point(self.center_line.coords[-1]).distance(shgeo.Point(end_point)) < 5:
end_point = None
return end_point
def uses_previous_stitch(self):