summaryrefslogtreecommitdiff
path: root/lib/stitches/fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-11-10 14:03:32 +0100
committerGitHub <noreply@github.com>2022-11-10 14:03:32 +0100
commit7445b91851f6bd4abc255490f917f6c578bbf0f1 (patch)
tree953e60cf81f23069386c4d89376736e0fccae59f /lib/stitches/fill.py
parentea13c429973e50ef55ee4bf4403a0618cb9b26d8 (diff)
lettering: ignore invalid glyph layers (#1892)
Diffstat (limited to 'lib/stitches/fill.py')
-rw-r--r--lib/stitches/fill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py
index ed4ff655..60a0cb7d 100644
--- a/lib/stitches/fill.py
+++ b/lib/stitches/fill.py
@@ -38,7 +38,7 @@ def row_num(point, angle, row_spacing):
def adjust_stagger(stitch, angle, row_spacing, max_stitch_length, staggers):
if staggers == 0:
- staggers = 1 # sanity check to avoid division by zero.
+ staggers = 1 # sanity check to avoid division by zero.
this_row_num = row_num(stitch, angle, row_spacing)
stagger_phase = (this_row_num / staggers) % 1
stagger_offset = stagger_phase * max_stitch_length