diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 20:56:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 20:56:27 +0100 |
commit | ebe34fc7957752abdc6b86a288904dac339fe035 (patch) | |
tree | 017f4dba52ecfb654e27c5a56e18ed746f286591 | |
parent | 5eed9fba17110f5a0e36ff71458c9ebd96090b66 (diff) |
logic/tracker: maybe fix both camera offset modes used together
-rw-r--r-- | logic/tracker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 8757e98e..cfc62c84 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -260,10 +260,7 @@ void Tracker::logic() const euler_t rot = r2d * c_mult * rmat_to_euler(rotation); euler_t pos = euler_t(&value[TX]) - t_center; - if (s.use_camera_offset_from_centering) - 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); + t_compensate(real_rotation.camera.t(), pos, pos, false, false, false); for (int i = 0; i < 3; i++) { |