From 474e4f75998ca0782f5212c7365d107790cab5c6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 10 Dec 2013 03:27:41 +0100 Subject: move declarations closer to usage Signed-off-by: Stanislaw Halik --- facetracknoir/tracker.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index 9bf5fb2c..dfc5d230 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -85,7 +85,7 @@ static void t_compensate(double* input, double* output) /** QThread run method @override **/ void Tracker::run() { - T6DOF offset_camera, gameoutput_camera, target_camera; + T6DOF offset_camera; bool bTracker1Confid = false; bool bTracker2Confid = false; @@ -139,7 +139,7 @@ void Tracker::run() { Libraries->pFilter->Initialize(); } - T6DOF target_camera2, new_camera; + T6DOF target_camera, target_camera2, new_camera; if (enabled && confid) { @@ -149,6 +149,8 @@ void Tracker::run() { target_camera2 = target_camera - offset_camera; } + T6DOF gameoutput_camera; + if (Libraries->pFilter) { for (int i = 0; i < 6; i++) last_post_filter[i] = gameoutput_camera.axes[i]; -- cgit v1.2.3