diff options
| author | Lex Neva <github.com@lexneva.name> | 2022-04-30 14:41:27 -0400 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 19:18:33 +0200 |
| commit | ff0aa68876c5b6840a5d7f01ef2af6c848190570 (patch) | |
| tree | fa4d022f9cd503876de5e30fe2c06d060e678e19 | |
| parent | e2ede5e456d8037552ac9077f2cc34ccdfb52db2 (diff) | |
properly link holes to outers
| -rw-r--r-- | lib/stitches/tangential_fill_stitch_line_creator.py | 2 |
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) |
