summaryrefslogtreecommitdiff
path: root/lib/elements/satin_column.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-08-31 11:25:46 +0200
committerGitHub <noreply@github.com>2025-08-31 11:25:46 +0200
commit612f18dc711c6a0fbf554465174b449604abb374 (patch)
tree3ad9bab29ae6f453c7f0406bfe8ee5bcbceabfb2 /lib/elements/satin_column.py
parent3b2f2973f3977bba5838e48c85ba4c8e3a41c71d (diff)
stroke to satin: ensure a good starting point for closed paths (#3944)
starting point for the conversion, not necessarily the resulting column
Diffstat (limited to 'lib/elements/satin_column.py')
-rw-r--r--lib/elements/satin_column.py4
1 files changed, 3 insertions, 1 deletions
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