From 0673df568351fd8ac50a4d2f5b27b91c29b8961d Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 31 Dec 2023 16:38:00 +0100 Subject: auto-route: do not add jumps between subpaths of satin columns (#2667) --- lib/stitches/utils/autoroute.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/stitches') diff --git a/lib/stitches/utils/autoroute.py b/lib/stitches/utils/autoroute.py index b1538cfd..ed07c9a4 100644 --- a/lib/stitches/utils/autoroute.py +++ b/lib/stitches/utils/autoroute.py @@ -5,12 +5,12 @@ from itertools import combinations +import inkex import networkx as nx -from shapely.geometry import Point, MultiPoint +from shapely.geometry import MultiPoint, Point from shapely.ops import nearest_points -import inkex - +from ...elements import SatinColumn from ...svg import get_correction_transform from ...svg.tags import INKSCAPE_LABEL from ...utils.threading import check_stop_flag @@ -100,6 +100,9 @@ def _add_ordered_jumps(graph, elements): # add jumps between subpath too, we do not care about directions here for element in elements: + if isinstance(element, SatinColumn): + # don't try this for satin columns + continue check_stop_flag() geoms = list(element.as_multi_line_string().geoms) i = 0 -- cgit v1.2.3