From d9525968a2462270ed5ef0f2ec1742c8ae325079 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 23 Oct 2018 18:08:46 -0600 Subject: fix manual stitch and add debugging support (#339) * add debugging support using pydev * fix: don't add tie stitches for manual stitch * fix style --- lib/stitch_plan/ties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stitch_plan') diff --git a/lib/stitch_plan/ties.py b/lib/stitch_plan/ties.py index 1d759c0e..5acf16e6 100644 --- a/lib/stitch_plan/ties.py +++ b/lib/stitch_plan/ties.py @@ -5,7 +5,7 @@ from ..svg import PIXELS_PER_MM def add_tie(stitches, tie_path): - if len(tie_path) < 2 or stitches[0].no_ties: + if len(tie_path) < 2 or tie_path[0].no_ties: # It's from a manual stitch block, so don't add tie stitches. The user # will add them if they want them. return -- cgit v1.2.3