diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-11-06 19:13:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 19:13:38 +0100 |
| commit | eafa256418af2d26497a623422b8777412b6f223 (patch) | |
| tree | 0ae1ee3376934108dadb5dd0dae386edbb192c89 /lib/stitches/utils/autoroute.py | |
| parent | 3922dce723a815ce32ebd8077b7e9589190c79ba (diff) | |
redwork/auto-run: keep stroke width (#3264)
Diffstat (limited to 'lib/stitches/utils/autoroute.py')
| -rw-r--r-- | lib/stitches/utils/autoroute.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
