summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2022-11-11 00:26:59 -0500
committerGeorge Steel <george.steel@gmail.com>2022-11-11 00:26:59 -0500
commite2ab19d92fbad798ff8a785646ce7aaddc36abaa (patch)
tree5479346fdb7658d2655448fc35c69cb2229e7d0c /lib
parent9237d19f0c5f0720a93451abf12057acd7583af0 (diff)
fix shadowing bug leading to division by zero
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/satin_column.py6
1 files changed, 3 insertions, 3 deletions
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 <distance> pixels along <path>, which is a sequence of line