diff options
| author | capellancitizen <thecapellancitizen@gmail.com> | 2024-08-20 23:18:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 23:18:13 -0400 |
| commit | 07f98b0a9b0e5315a2bc83bfa8ab8b6dbd9eaf2b (patch) | |
| tree | 9f9432900e338e2740c83a3cbf54ffdd720c5ff6 /lib/elements/clone.py | |
| parent | 7cf952dce27173c918340a839694802f332ae26a (diff) | |
Fixed transforms on cloned commands (#3160)
Also, point-upwards now applied to commands that are children
of cloned elements.
Diffstat (limited to 'lib/elements/clone.py')
| -rw-r--r-- | lib/elements/clone.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/elements/clone.py b/lib/elements/clone.py index 91c69740..ce9c2162 100644 --- a/lib/elements/clone.py +++ b/lib/elements/clone.py @@ -12,7 +12,7 @@ from shapely import MultiLineString from ..stitch_plan.stitch_group import StitchGroup -from ..commands import is_command_symbol, find_commands +from ..commands import is_command_symbol, find_commands, point_command_symbols_up from ..i18n import _ from ..svg.svg import copy_no_children from ..svg.path import get_node_transform @@ -163,6 +163,9 @@ class Clone(EmbroideryElement): ret = [cloned_node] + # For aesthetic purposes, transform allof the cloned command symbols so they're facing upwards + point_command_symbols_up(cloned_node) + # We need to copy all commands that were attached directly to the href'd node for command in find_commands(source_node): ret.append(command.clone(cloned_node)) |
