kopia lustrzana https://github.com/inkstitch/inkstitch
undo build changes for depq, update clone
rodzic
330c6be787
commit
48d0a0250e
lib
stitches
|
@ -70,7 +70,7 @@ class Clone(EmbroideryElement):
|
|||
|
||||
def clone_to_element(self, node):
|
||||
from .utils import node_to_elements
|
||||
return node_to_elements(node)
|
||||
return node_to_elements(node, True)
|
||||
|
||||
def to_stitch_groups(self, last_patch=None):
|
||||
patches = []
|
||||
|
|
|
@ -19,11 +19,12 @@ from .stroke import Stroke
|
|||
from .text import TextObject
|
||||
|
||||
|
||||
def node_to_elements(node): # noqa: C901
|
||||
def node_to_elements(node, clone_to_element=False): # noqa: C901
|
||||
if node.tag == SVG_POLYLINE_TAG:
|
||||
return [Polyline(node)]
|
||||
|
||||
elif is_clone(node):
|
||||
elif is_clone(node) and not clone_to_element:
|
||||
# clone_to_element: get an actual embroiderable element once a clone has been defined as a clone
|
||||
return [Clone(node)]
|
||||
|
||||
elif node.tag == SVG_PATH_TAG and not node.get('d', ''):
|
||||
|
@ -32,7 +33,7 @@ def node_to_elements(node): # noqa: C901
|
|||
elif has_marker(node):
|
||||
return [MarkerObject(node)]
|
||||
|
||||
elif node.tag in EMBROIDERABLE_TAGS:
|
||||
elif node.tag in EMBROIDERABLE_TAGS or is_clone(node):
|
||||
element = EmbroideryElement(node)
|
||||
|
||||
if element.get_boolean_param("satin_column") and element.get_style("stroke"):
|
||||
|
|
|
@ -5,7 +5,6 @@ from .auto_fill import (build_fill_stitch_graph,
|
|||
build_travel_graph, collapse_sequential_outline_edges, fallback,
|
||||
find_stitch_path, graph_is_valid, travel)
|
||||
from .running_stitch import running_stitch
|
||||
from ..debug import debug
|
||||
from ..i18n import _
|
||||
from ..stitch_plan import Stitch
|
||||
from ..utils.geometry import Point as InkstitchPoint, reverse_line_string
|
||||
|
|
|
@ -20,7 +20,7 @@ tinycss2
|
|||
flask
|
||||
fonttools
|
||||
trimesh
|
||||
scipy==1.7.3
|
||||
scipy
|
||||
|
||||
pywinutils; sys.platform == 'win32'
|
||||
pywin32; sys.platform == 'win32'
|
||||
|
|
Ładowanie…
Reference in New Issue