remove unnecessary starting 0,0 JUMP

pull/29/head
Lex Neva 2018-01-15 15:09:17 -05:00
rodzic b5959ea856
commit c043e10e6a
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -185,6 +185,10 @@ class EmbroiderySimulator(wx.Frame):
x, y = fields[2:]
new_pos = (float(x) * PIXELS_PER_MM, float(y) * PIXELS_PER_MM)
if not segments and new_pos == (0.0, 0.0):
# libembroidery likes to throw an extra JUMP in at the start
continue
if not cut:
segments.append(((pos, new_pos), pen))