summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-04-28 21:48:38 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-04-28 21:48:38 +0200
commit9d14198253d2107d93ab19c14b2bb5cf2ae226f2 (patch)
treedaeaea05f773c01f4b74f97c84302c379c3cb7d5
parent52a8a95a8553f5b2a1224db474e6cf1d649533c8 (diff)
Fix a bug with relative angles
-rw-r--r--src/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.py b/src/ui.py
index 7803d3d..1e27ead 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -356,7 +356,7 @@ def optimize(which):
def I(theta):
op.angle = theta
if op.ref is not False:
- op.ref += system.elements[op.ref].angle
+ op.angle += system.elements[op.ref].angle
state = None
for i, pol in enumerate(system.elements):