diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-20 16:56:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 16:56:00 +0200 |
| commit | c017cae01aa33a876795ec5da1438e8ec0f11fc5 (patch) | |
| tree | ace90dd7c09b6bbddd53cf4b351cb55ef56f42c0 /lib/stitches/fill.py | |
| parent | c030e3283530bc1d0f4bad219f4c61db22750506 (diff) | |
gray out randomize stitch length param when random stitch length is disabled (#3002)
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
