From 9d14198253d2107d93ab19c14b2bb5cf2ae226f2 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 28 Apr 2019 21:48:38 +0200 Subject: Fix a bug with relative angles --- src/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit