From c017cae01aa33a876795ec5da1438e8ec0f11fc5 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:56:00 +0200 Subject: gray out randomize stitch length param when random stitch length is disabled (#3002) --- lib/stitches/fill.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stitches/fill.py') diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py index 59501a9e..4f3e2208 100644 --- a/lib/stitches/fill.py +++ b/lib/stitches/fill.py @@ -52,12 +52,13 @@ def adjust_stagger(stitch, angle, row_spacing, max_stitch_length, staggers): return stitch - offset * east(angle) -def stitch_row(stitches, beg, end, angle, row_spacing, max_stitch_length, staggers, skip_last, enable_random, random_sigma, random_seed): +def stitch_row(stitches, beg, end, angle, row_spacing, max_stitch_length, staggers, skip_last, + enable_random_stitch_length, random_sigma, random_seed): beg = Stitch(*beg, tags=('fill_row_start',)) end = Stitch(*end, tags=('fill_row_start',)) stitches.append(beg) - if enable_random: + if enable_random_stitch_length: stitches += split_segment_random_phase(beg, end, max_stitch_length, random_sigma, random_seed) else: # We want our stitches to look like this: -- cgit v1.2.3