fix short stitch for second rail

pull/2032/head
Kaalleen 2023-01-28 12:02:17 +01:00
rodzic a5c085f390
commit 5481277458
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1068,7 +1068,7 @@ class SatinColumn(EmbroideryElement):
offset_px = [0, 0]
if a.distance(pairs[i-1][0]) < min_dist:
offset_px[0] = -inset_px
if b.distance(pairs[i-1][0]) < min_dist:
if b.distance(pairs[i-1][1]) < min_dist:
offset_px[1] = -inset_px
shortened.append(self.offset_points(a, b, offset_px, (0, 0)))
return shortened