summaryrefslogtreecommitdiff
path: root/lib/stitches/running_stitch.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitches/running_stitch.py')
-rw-r--r--lib/stitches/running_stitch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/running_stitch.py b/lib/stitches/running_stitch.py
index 0b7a672d..8b8add7e 100644
--- a/lib/stitches/running_stitch.py
+++ b/lib/stitches/running_stitch.py
@@ -216,8 +216,8 @@ def stitch_curve_evenly(points: typing.Sequence[Point], stitch_length: float, to
if len(points) < 2:
return []
distLeft = [0] * len(points)
- for i in reversed(range(0, len(points) - 1)):
- distLeft[i] = distLeft[i + 1] + points[i].distance(points[i+1])
+ for j in reversed(range(0, len(points) - 1)):
+ distLeft[j] = distLeft[j + 1] + points[j].distance(points[j+1])
i: typing.Optional[int] = 1
last = points[0]