From 72dc85d3dd4fb6813b3ae610f651fe2a1800122b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 20 May 2025 16:01:34 +0200 Subject: ripple: return empty when there are no helper lines (#3733) --- lib/stitches/ripple_stitch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stitches/ripple_stitch.py b/lib/stitches/ripple_stitch.py index 7a2783f7..231a70e1 100644 --- a/lib/stitches/ripple_stitch.py +++ b/lib/stitches/ripple_stitch.py @@ -28,6 +28,8 @@ def ripple_stitch(stroke): return [] is_linear, helper_lines = _get_helper_lines(stroke) + if not helper_lines: + return [] num_lines = len(helper_lines[0]) skip_start = _adjust_skip(stroke, num_lines, stroke.skip_start) -- cgit v1.2.3