summaryrefslogtreecommitdiff
path: root/lib/elements/fill_stitch.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-01-15 20:04:10 +0100
committerGitHub <noreply@github.com>2023-01-15 20:04:10 +0100
commit1cdb3538a83a13d97907d08908750f0d85de6978 (patch)
treeddccf347d43ff850f4e8eca0e4c541dbd3cf2e4f /lib/elements/fill_stitch.py
parent4156c4adb4eadaf024b29df1df6bf1c91d3777a8 (diff)
Add bean stitch repeat pattern (#1938)
! backward compatibility warning: Users need to fix their documents if they used comma separated values for multiple fill underlays (without a space)
Diffstat (limited to 'lib/elements/fill_stitch.py')
-rw-r--r--lib/elements/fill_stitch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index f4a21f90..7de293cb 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -405,7 +405,7 @@ class FillStitch(EmbroideryElement):
@property
@param('fill_underlay_angle',
_('Fill angle'),
- tooltip=_('Default: fill angle + 90 deg. Insert comma-seperated list for multiple layers.'),
+ tooltip=_('Default: fill angle + 90 deg. Insert a list for multiple layers separated by a space.'),
unit='deg',
group=_('Fill Underlay'),
type='float')
@@ -414,7 +414,9 @@ class FillStitch(EmbroideryElement):
underlay_angles = self.get_param('fill_underlay_angle', None)
default_value = [self.angle + math.pi / 2.0]
if underlay_angles is not None:
- underlay_angles = underlay_angles.strip().split(',')
+ underlay_angles = underlay_angles.strip().split(' ')
+ # remove comma separator for backward compatibility
+ underlay_angles = [angle[:-1] if angle.endswith(',') else angle for angle in underlay_angles]
try:
underlay_angles = [math.radians(
float(angle)) for angle in underlay_angles]