diff options
-rw-r--r-- | facetracknoir/tracker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index 93b09792..3b2562a8 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -119,8 +119,6 @@ void Tracker::run() { {
if (should_quit)
break;
-
- QMutexLocker foo(&mtx);
for (int i = 0; i < 6; i++)
newpose[i] = 0;
@@ -169,6 +167,8 @@ void Tracker::run() { }
if (getTrackingActive()) {
+ QMutexLocker foo(&mtx);
+
// get values
for (int i = 0; i < 6; i++)
target_camera.axes[i] = mainApp->axis(i).headPos;
|