summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2023-05-16 16:27:52 +0200
committerKaalleen <reni@allenka.de>2023-05-16 16:27:52 +0200
commit66068208e87f5464fa6b8038b74fe95de6b21bb9 (patch)
treea5e21764ead29018be906e494e81b8d3a9554e9a /lib
parenta7e1de5c67c660cf8963b73358e08634ba8b3c39 (diff)
change running stitch length default
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/fill_stitch.py4
-rw-r--r--lib/elements/stroke.py4
-rw-r--r--lib/update.py3
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index 62bd1aca..91cad563 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -352,14 +352,14 @@ class FillStitch(EmbroideryElement):
'Also used for meander and circular fill.'),
unit='mm',
type='float',
- default=1.5,
+ default=2.5,
select_items=[('fill_method', 'auto_fill'),
('fill_method', 'guided_fill'),
('fill_method', 'meander_fill'),
('fill_method', 'circular_fill')],
sort_index=31)
def running_stitch_length(self):
- return max(self.get_float_param("running_stitch_length_mm", 1.5), 0.01)
+ return max(self.get_float_param("running_stitch_length_mm", 2.5), 0.01)
@property
@param('running_stitch_tolerance_mm',
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index db044a2c..ac54908b 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -101,10 +101,10 @@ class Stroke(EmbroideryElement):
unit='mm',
type='float',
select_items=[('stroke_method', 'running_stitch'), ('stroke_method', 'ripple_stitch')],
- default=1.5,
+ default=2.5,
sort_index=4)
def running_stitch_length(self):
- return max(self.get_float_param("running_stitch_length_mm", 1.5), 0.01)
+ return max(self.get_float_param("running_stitch_length_mm", 2.5), 0.01)
@property
@param('running_stitch_tolerance_mm',
diff --git a/lib/update.py b/lib/update.py
index 126f8ec1..b0bfcdfa 100644
--- a/lib/update.py
+++ b/lib/update.py
@@ -112,6 +112,9 @@ def _update_to_one(element): # noqa: C901
# default setting for fill_underlay has changed
if legacy_attribs and not element.get_param('fill_underlay', ""):
element.set_param('fill_underlay', False)
+ # default setting for running stitch length has changed (fills and strokes, not satins)
+ if not element.get_boolean_param('satin_column', False) and element.get_float_param('running_stitch_length_mm', None) is None:
+ element.set_param('running_stitch_length_mm', 1.5)
# convert legacy stroke_method
if element.get_style("stroke") and not element.node.get('inkscape:connection-start', None):