summaryrefslogtreecommitdiff
path: root/embroider.py
diff options
context:
space:
mode:
authorLex Neva <github@lexneva.name>2017-09-23 02:42:35 +0100
committerLex Neva <github@lexneva.name>2017-09-23 02:42:35 +0100
commit4b8fa119429299a9f087dc4019b3bd7ad5f57429 (patch)
tree0e31d78ceb11a87b6134e324712c7b92efb2b00f /embroider.py
parentb7db218d929652199c8bbd8c643c6fb931ad728a (diff)
ignore empty subpaths
Diffstat (limited to 'embroider.py')
-rw-r--r--embroider.py3
1 files changed, 2 insertions, 1 deletions
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