diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-02 12:59:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-02 12:59:43 +0200 |
commit | 82ffb9b11a6f5bc94c658a10d6c2c21c0f217d18 (patch) | |
tree | e4ae39dd2917226f2fe38972a998b45bb32b0f06 /facetracknoir/tracker.cpp | |
parent | afbec6a10b1e718fed134f61295e92f1e94770d4 (diff) |
UI cleanup, tracking overlay already provides that information. Expose one internal value less.
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r-- | facetracknoir/tracker.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index a0b827e4..0d584fae 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -70,7 +70,6 @@ /** constructor **/
Tracker::Tracker( FaceTrackNoIR *parent ) :
- confid(false),
should_quit(false),
do_center(false)
{
@@ -137,7 +136,7 @@ void Tracker::run() { {
QMutexLocker foo(&mtx);
- confid = bTracker1Confid || bTracker2Confid;
+ const bool confid = bTracker1Confid || bTracker2Confid;
if ( confid ) {
for (int i = 0; i < 6; i++)
@@ -151,10 +150,8 @@ void Tracker::run() { //
// Only copy valid values
//
- if (confid) {
- for (int i = 0; i < 6; i++)
- offset_camera.axes[i] = mainApp->axis(i).headPos;
- }
+ for (int i = 0; i < 6; i++)
+ offset_camera.axes[i] = mainApp->axis(i).headPos;
Tracker::do_center = false;
@@ -168,7 +165,7 @@ void Tracker::run() { Libraries->pFilter->Initialize();
}
- if (getTrackingActive()) {
+ if (confid) {
// get values
for (int i = 0; i < 6; i++)
target_camera.axes[i] = mainApp->axis(i).headPos;
|