summaryrefslogtreecommitdiff
path: root/lib/stitches
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2023-05-31 20:49:20 -0400
committerKaalleen <reni@allenka.de>2023-07-01 08:23:46 +0200
commit799b9a9131185bae3cb392bd0603e903498074dc (patch)
treed1f07d1bb55e2a8b8be391ca5cdf9dcbc9ab14b6 /lib/stitches
parent6c5920f48e621cbd5ed36c1b46b73ab1d147500d (diff)
ensure Points
Diffstat (limited to 'lib/stitches')
-rw-r--r--lib/stitches/auto_fill.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py
index 5e886fae..50eea18e 100644
--- a/lib/stitches/auto_fill.py
+++ b/lib/stitches/auto_fill.py
@@ -634,6 +634,8 @@ def travel(shape, travel_graph, edge, running_stitch_length, running_stitch_tole
path = networkx.shortest_path(travel_graph, start, end, weight='weight')
if underpath and path != (start, end):
path = smooth_path(path, 2)
+ else:
+ path = [InkstitchPoint.from_tuple(point) for point in path]
path = clamp_path_to_polygon(path, shape)
points = running_stitch(path, running_stitch_length, running_stitch_tolerance)