From 612f18dc711c6a0fbf554465174b449604abb374 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 31 Aug 2025 11:25:46 +0200 Subject: stroke to satin: ensure a good starting point for closed paths (#3944) starting point for the conversion, not necessarily the resulting column --- lib/elements/satin_column.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/elements/satin_column.py') diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 4951f8bf..26b4d534 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -26,7 +26,7 @@ from ..utils import Point, cache, cut, cut_multiple, offset_points, prng from ..utils.param import ParamOption from ..utils.threading import check_stop_flag from .element import PIXELS_PER_MM, EmbroideryElement, param -from .utils.stroke_to_satin import convert_path_to_satin +from .utils.stroke_to_satin import convert_path_to_satin, set_first_node from .validation import ValidationError, ValidationWarning @@ -625,6 +625,8 @@ class SatinColumn(EmbroideryElement): paths = [path for path in self.paths if len(path) > 1] if len(paths) == 1: style_args = get_join_style_args(self) + if self.is_closed_path: + set_first_node(paths, self.stroke_width) new_satin = convert_path_to_satin(paths[0], self.stroke_width, style_args, rungs_at_nodes=True) if new_satin: rails, rungs = new_satin -- cgit v1.2.3