ignore empty subpaths

pull/5/head
Lex Neva 2017-09-23 02:42:35 +01:00
rodzic b7db218d92
commit 4b8fa11942
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -289,7 +289,8 @@ class Fill(EmbroideryElement):
last_pt = pt
else:
last_pt = pt
poly_ary.append(point_ary)
if point_ary:
poly_ary.append(point_ary)
# shapely's idea of "holes" are to subtract everything in the second set
# from the first. So let's at least make sure the "first" thing is the