From dafc3b97822ac0e929655bfa73590209e3350c47 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 10 Aug 2019 22:22:46 -0400 Subject: [PATCH] ignore single-point point lists too --- lib/svg/rendering.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/svg/rendering.py b/lib/svg/rendering.py index 42a603c5a..074380a79 100644 --- a/lib/svg/rendering.py +++ b/lib/svg/rendering.py @@ -151,7 +151,7 @@ def color_block_to_point_lists(color_block): point_lists[-1].append(stitch.as_tuple()) # filter out empty point lists - point_lists = [p for p in point_lists if p] + point_lists = [p for p in point_lists if len(p) > 1] return point_lists @@ -169,9 +169,6 @@ def get_correction_transform(svg): def color_block_to_realistic_stitches(color_block, svg, destination): for point_list in color_block_to_point_lists(color_block): - if not point_list: - continue - color = color_block.color.visible_on_white.darker.to_hex_str() start = point_list[0] for point in point_list[1:]: