diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-22 18:42:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 18:42:59 +0200 |
| commit | a0486711e44bf8f70f7a9e84e4cd2a8101e965c8 (patch) | |
| tree | ba0f778e9562b4f1e358ad5599ca56a4d2312899 | |
| parent | bb6eb2cb70d099ded380a77bc0364490326bb271 (diff) | |
fix redwork stroke width (#3964)
| -rw-r--r-- | lib/extensions/redwork.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/extensions/redwork.py b/lib/extensions/redwork.py index 53c6131c..ef91b12b 100644 --- a/lib/extensions/redwork.py +++ b/lib/extensions/redwork.py @@ -116,8 +116,12 @@ class Redwork(InkstitchExtension): def _eulerian_circuits_to_elements(self, redwork_group, elements): combine_all = self.options.combine and self.options.redwork_bean_stitch_repeats == '0' node = elements[0].node - style = node.style + transform = get_correction_transform(self.svg.selection.rendering_order()[-1], False) + style = node.style + # Fix up the stroke width + stroke_width = elements[0].stroke_width + style["stroke-width"] = self.svg.viewport_to_unit(stroke_width) # insert lines grouped by underpath and top layer visited_lines = [] |
