summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--logic/tracker.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 7f546236..81854d0d 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -210,6 +210,7 @@ void Tracker::logic()
{
rmat rotation;
+ euler_t pos = euler_t(&value[TX]) - t_center;
switch (s.center_method)
{
@@ -221,13 +222,11 @@ void Tracker::logic()
default:
case 1:
rotation = scaled_rotation.rotation * scaled_rotation.rot_center;
+ t_compensate(real_rotation.rot_center, pos, pos, false, false, false);
+
break;
}
- euler_t pos = euler_t(&value[TX]) - t_center;
-
- t_compensate(real_rotation.rot_center, pos, pos, false, false, false);
-
euler_t rot = r2d * c_mult * rmat_to_euler(rotation);
for (int i = 0; i < 3; i++)