From 7445b91851f6bd4abc255490f917f6c578bbf0f1 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:03:32 +0100 Subject: lettering: ignore invalid glyph layers (#1892) --- lib/stitches/guided_fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stitches/guided_fill.py') diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py index 6a92f8e8..14c58b7a 100644 --- a/lib/stitches/guided_fill.py +++ b/lib/stitches/guided_fill.py @@ -149,7 +149,7 @@ def take_only_line_strings(thing): def apply_stitches(line, max_stitch_length, num_staggers, row_spacing, row_num): if num_staggers == 0: - num_staggers = 1 # sanity check to avoid division by zero. + num_staggers = 1 # sanity check to avoid division by zero. start = ((row_num / num_staggers) % 1) * max_stitch_length projections = np.arange(start, line.length, max_stitch_length) points = np.array([line.interpolate(projection).coords[0] for projection in projections]) -- cgit v1.2.3