From ff0aa68876c5b6840a5d7f01ef2af6c848190570 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 30 Apr 2022 14:41:27 -0400 Subject: properly link holes to outers --- lib/stitches/tangential_fill_stitch_line_creator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stitches/tangential_fill_stitch_line_creator.py') 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) -- cgit v1.2.3