diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-12-31 16:38:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-31 16:38:00 +0100 |
| commit | 0673df568351fd8ac50a4d2f5b27b91c29b8961d (patch) | |
| tree | df5f59408b0800f79167d6cf2c4a1d0733486a3a | |
| parent | cbae740a6ad795ab699b6def3ba5837372227836 (diff) | |
auto-route: do not add jumps between subpaths of satin columns (#2667)
| -rw-r--r-- | lib/stitches/utils/autoroute.py | 9 |
1 files changed, 6 insertions, 3 deletions
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 |
