summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:30:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:30:05 +0100
commitc1845054628c42017b838ceb7769a779dc1f1e08 (patch)
tree1c70697fdec465d0f408c28b95b0f17ef2251951 /facetracknoir
parent893b79383a71f5ce8a34f756445c1494d049a283 (diff)
this declaration must have larger extent
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 371c10a6..dfe71f28 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;
+ T6DOF offset_camera, gameoutput_camera;
double newpose[6] = {0};
double last_post_filter[6] ;
@@ -135,7 +135,7 @@ void Tracker::run() {
T6DOF target_camera, target_camera2, new_camera;
- if (enabled && confid)
+ if (enabled)
{
for (int i = 0; i < 6; i++)
target_camera.axes[i] = mainApp->axis(i).headPos;
@@ -143,8 +143,6 @@ 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];