From 1cc0eab91189227371c5bb78d9e1f1f06deaeaf5 Mon Sep 17 00:00:00 2001 From: George Steel Date: Sun, 23 Oct 2022 00:54:35 -0400 Subject: Add support for fractional-length stagger cycles in fills. --- lib/elements/fill_stitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/elements/fill_stitch.py') diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index ad2b5372..ca44e3cc 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -216,13 +216,13 @@ class FillStitch(EmbroideryElement): @property @param('staggers', _('Stagger rows this many times before repeating'), - tooltip=_('Setting this dictates how many rows apart the stitches will be before they fall in the same column position.'), + tooltip=_('Length of the cycle by which successive stitch rows are staggered. Fractional values are allowed and can have less visible diagonals than integer values.'), type='int', sort_index=6, select_items=[('fill_method', 0), ('fill_method', 2), ('fill_method', 3)], default=4) def staggers(self): - return max(self.get_int_param("staggers", 4), 1) + return self.get_float_param("staggers", 4) @property @cache -- cgit v1.2.3