From 1e5733bbcdb000b27a0569b2b838cc0c04ffb461 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 20 Mar 2019 20:46:26 -0400 Subject: add first stitch --- lib/stitches/auto_fill.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/stitches/auto_fill.py') diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 2414e937..8ad9fa16 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -442,6 +442,10 @@ def path_to_stitches(path, travel_graph, fill_stitch_graph, angle, row_spacing, stitches = [] + # If the very first stitch is travel, we'll omit it in travel(), so add it here. + if not path[0].is_segment(): + stitches.append(InkstitchPoint(*path[0].nodes[0])) + for edge in path: if edge.is_segment(): stitch_row(stitches, edge[0], edge[1], angle, row_spacing, max_stitch_length, staggers, skip_last) -- cgit v1.2.3