From eafa256418af2d26497a623422b8777412b6f223 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 6 Nov 2024 19:13:38 +0100 Subject: redwork/auto-run: keep stroke width (#3264) --- lib/stitches/utils/autoroute.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stitches/utils/autoroute.py') diff --git a/lib/stitches/utils/autoroute.py b/lib/stitches/utils/autoroute.py index ed07c9a4..a83e8002 100644 --- a/lib/stitches/utils/autoroute.py +++ b/lib/stitches/utils/autoroute.py @@ -230,11 +230,12 @@ def remove_from_parent(node): node.getparent().remove(node) -def create_new_group(parent, insert_index, label): +def create_new_group(parent, insert_index, label, correction_transform=True): group = inkex.Group(attrib={ INKSCAPE_LABEL: label, - "transform": get_correction_transform(parent, child=True) }) + if correction_transform: + group.transform = get_correction_transform(parent, child=True) parent.insert(insert_index, group) return group -- cgit v1.2.3