From 8137481953398b22f6eb9c2f7497102f82ccee0b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 18 Apr 2025 07:39:15 +0200 Subject: Disconnect stroke and fill pull compensation param (#3670) * make stroke pull compensation a sided property --- lib/elements/stroke.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/elements') diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py index 96a9307f..5143c020 100644 --- a/lib/elements/stroke.py +++ b/lib/elements/stroke.py @@ -195,18 +195,18 @@ class Stroke(EmbroideryElement): return max(self.get_float_param("zigzag_spacing_mm", 0.4), 0.01) @property - @param('pull_compensation_mm', + @param('stroke_pull_compensation_mm', _('Pull compensation'), tooltip=_('Zigzag stitches pull the fabric together, resulting in a column narrower than you draw in Inkscape. ' 'This widens the zigzag line width.'), - unit='mm', + unit=_('mm (each side)'), type='float', default=0, select_items=[('stroke_method', 'zigzag_stitch')], sort_index=6) @cache def pull_compensation(self): - return self.get_float_param("pull_compensation_mm", 0) + return self.get_split_mm_param_as_px("stroke_pull_compensation_mm", (0, 0)) @property @param('line_count', -- cgit v1.2.3