summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-03 17:11:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-03 17:11:15 +0200
commitb0cd8e36fd1f2c7d7fc71909b355c0c53faaac0a (patch)
tree1249f737222be185dee4890cbb576e3e0285a886 /logic
parentb5e67864360d98145c67130bfdb3c4c56963c787 (diff)
logic/tracker: apply auto-offset reltrans rotations in right order
Remove warning on using reltrans with auto-offset. Tested-by: @Len62 Discussed-with: @Len62 Issue: #473
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 325381ee..c6b9475b 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -255,7 +255,7 @@ void Tracker::logic()
euler_t pos = euler_t(&value[TX]) - t_center;
if (s.use_camera_offset_from_centering)
- t_compensate(real_rotation.rot_center.t() * real_rotation.camera.t(), pos, pos, false, false, false);
+ t_compensate((real_rotation.camera * real_rotation.rot_center).t(), pos, pos, false, false, false);
else
t_compensate(real_rotation.camera.t(), pos, pos, false, false, false);