Skip to content

Commit 2417b35

Browse files
authored
satin: skip contour underlay if there are no pairs (inkstitch#3912)
1 parent 9263aff commit 2417b35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/elements/satin_column.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,9 @@ def do_contour_underlay(self, end_point):
13531353
self.contour_underlay_stitch_tolerance,
13541354
-self.contour_underlay_inset_px, -self.contour_underlay_inset_percent/100)
13551355

1356+
if not pairs:
1357+
return []
1358+
13561359
first_side = running_stitch.even_running_stitch(
13571360
[points[0] for points in pairs],
13581361
self.contour_underlay_stitch_length,

0 commit comments

Comments
 (0)