diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-04-10 10:21:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-10 10:21:59 +0200 |
| commit | 7ecfa7a2e6b2c971f35d8264c35b3efdae212489 (patch) | |
| tree | 195e932b557e9d34ace426cac0d8a599479da654 /lib/extensions/cutwork_segmentation.py | |
| parent | c575aeda96d389de29389c9e6e46395e1b938244 (diff) | |
Scale and toggle commands (etc) (#1611)
* scale and toggle commands
* fix tie in when first stitch is a jump stitch
* set tie modus to 3 for cutwork objects
* cutwork set stitch length
* fix bug in remove embroidery settings
Diffstat (limited to 'lib/extensions/cutwork_segmentation.py')
| -rw-r--r-- | lib/extensions/cutwork_segmentation.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/extensions/cutwork_segmentation.py b/lib/extensions/cutwork_segmentation.py index d17cfd76..1b0c568e 100644 --- a/lib/extensions/cutwork_segmentation.py +++ b/lib/extensions/cutwork_segmentation.py @@ -5,14 +5,15 @@ from math import atan2, degrees -import inkex from lxml import etree from shapely.geometry import LineString, Point +import inkex + from ..elements import Stroke from ..i18n import _ from ..svg import get_correction_transform -from ..svg.tags import INKSCAPE_LABEL, SVG_PATH_TAG +from ..svg.tags import INKSCAPE_LABEL, INKSTITCH_ATTRIBS, SVG_PATH_TAG from .base import InkstitchExtension @@ -141,6 +142,8 @@ class CutworkSegmentation(InkstitchExtension): { "style": color, "transform": get_correction_transform(element.node), + INKSTITCH_ATTRIBS["ties"]: "3", + INKSTITCH_ATTRIBS["running_stitch_length_mm"]: "1", "d": d }) self.new_elements.append([stroke_element, sector['id']]) |
