From e2ab19d92fbad798ff8a785646ce7aaddc36abaa Mon Sep 17 00:00:00 2001 From: George Steel Date: Fri, 11 Nov 2022 00:26:59 -0500 Subject: fix shadowing bug leading to division by zero --- lib/elements/satin_column.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index a96e8bf9..f9c5495d 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -703,10 +703,10 @@ class SatinColumn(EmbroideryElement): if offset2 < -distance * offset_balance: offset2 = -distance * offset_balance - pos1 = pos1 + (pos1 - pos2).unit() * offset1 - pos2 = pos2 + (pos2 - pos1).unit() * offset2 + out1 = pos1 + (pos1 - pos2).unit() * offset1 + out2 = pos2 + (pos2 - pos1).unit() * offset2 - return pos1, pos2 + return out1, out2 def walk(self, path, start_pos, start_index, distance): # Move pixels along , which is a sequence of line -- cgit v1.2.3