From acb12232452d6a4be368702eedaa1ba871653eef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 14 Apr 2017 05:01:21 +0200 Subject: logic/tracker.cpp: explicit set to zeros with custom center cf. https://github.com/opentrack/opentrack/issues/352#issuecomment-293885962 --- logic/tracker.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 320053b9..2f07304e 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -205,16 +205,18 @@ void Tracker::logic() if (own_center_logic) { - scaled_rotation.rotation = rmat::eye(); - real_rotation.rotation = rmat::eye(); + scaled_rotation.rot_center = rmat::eye(); + real_rotation.rot_center = rmat::eye(); + + t_center = euler_t(); } else { real_rotation.rot_center = real_rotation.rotation.t(); scaled_rotation.rot_center = scaled_rotation.rotation.t(); - } - t_center = euler_t(&value(TX)); + t_center = euler_t(&value(TX)); + } } { -- cgit v1.2.3