summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stitches/tangential_fill_stitch_line_creator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stitches/tangential_fill_stitch_line_creator.py b/lib/stitches/tangential_fill_stitch_line_creator.py
index 46b5a262..e0bf62e6 100644
--- a/lib/stitches/tangential_fill_stitch_line_creator.py
+++ b/lib/stitches/tangential_fill_stitch_line_creator.py
@@ -343,7 +343,7 @@ def offset_poly(poly, offset, join_style, stitch_distance, min_stitch_distance,
# contained in the new holes they
# have been merged with the
# outer polygon
- if tree.nodes[previous_hole].parent is None:
+ if not tree.nodes[previous_hole].parent:
tree.nodes[previous_hole].parent = current_poly
tree.add_edge(current_poly, previous_hole)