From 4b8fa119429299a9f087dc4019b3bd7ad5f57429 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 23 Sep 2017 02:42:35 +0100 Subject: ignore empty subpaths --- embroider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embroider.py') diff --git a/embroider.py b/embroider.py index bd4d1abe..9d51419e 100644 --- a/embroider.py +++ b/embroider.py @@ -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 -- cgit v1.2.3