summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-07-19 22:30:15 +0200
committerGitHub <noreply@github.com>2025-07-19 22:30:15 +0200
commitffc0db1ddf2f790fecaa67cdacec87f207e999e8 (patch)
tree9938f5a242ca6bb1ac045dd7aed96b6097f6c629 /lib/extensions/params.py
parentfdd3dbc956cd9d2be10bcbf4834e47dd89fcb754 (diff)
Convert to satin internally (3874)
Diffstat (limited to 'lib/extensions/params.py')
-rwxr-xr-xlib/extensions/params.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 0bba13fe..fd4af28f 100755
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -24,6 +24,7 @@ from ..gui import PresetsPanel, PreviewRenderer, WarningPanel
from ..gui.simulator import SplitSimulatorWindow
from ..i18n import _
from ..stitch_plan import stitch_groups_to_stitch_plan
+from ..svg import PIXELS_PER_MM
from ..svg.tags import EMBROIDERABLE_TAGS
from ..utils import get_resource_dir
from ..utils.param import ParamOption
@@ -724,9 +725,9 @@ class Params(InkstitchExtension):
if element.fill_color is not None and not element.get_style("fill-opacity", 1) == "0":
classes.append(FillStitch)
if element.stroke_color is not None:
- classes.append(Stroke)
- if len(element.path) > 1:
+ if len(element.path) > 1 or element.stroke_width >= 0.3 * PIXELS_PER_MM:
classes.append(SatinColumn)
+ classes.append(Stroke)
return classes
def get_nodes_by_class(self):