fix closed-loop problem in wx simulator

pull/1848/head
George Steel 2022-10-08 20:06:38 -04:00
rodzic b2bde4f959
commit f7748f0f46
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -381,13 +381,13 @@ class DrawingPanel(wx.Panel):
if stitch + len(stitches) < self.current_stitch:
stitch += len(stitches)
if len(stitches) > 1:
canvas.DrawLines(stitches)
canvas.StrokeLines(stitches)
self.draw_needle_penetration_points(canvas, pen, stitches)
last_stitch = stitches[-1]
else:
stitches = stitches[:self.current_stitch - stitch]
if len(stitches) > 1:
canvas.DrawLines(stitches)
canvas.StrokeLines(stitches)
self.draw_needle_penetration_points(canvas, pen, stitches)
last_stitch = stitches[-1]
break