summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-24 06:00:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-24 06:00:10 +0100
commit7cd098be225ab1338c81f842dc1a48d097c494bc (patch)
treefa6a94d0a6af2002529976be754f1b67ed1ae9ff /facetracknoir/facetracknoir.cpp
parent9490813ba7283a5f4caf178808907177357cd5c8 (diff)
parenta8750aae7ed86edd9f28f39f09f4650d9fe00666 (diff)
Merge branch 'master' of github.com:opentrack/opentrack
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index b000b304..1f3ae3a2 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -492,12 +492,12 @@ void FaceTrackNoIR::startTracker( ) {
axis(i).invert = iniFile.value(invert_names[i], false).toBool() ? 1 : -1;
}
- iniFile.endGroup();
-
- tracker = new Tracker ( this );
+ tracker = new Tracker ( this );
tracker->compensate = iniFile.value("compensate", true).toBool();
+ iniFile.endGroup();
+
tracker->setInvertAxis(Yaw, ui.chkInvertYaw->isChecked() );
tracker->setInvertAxis(Pitch, ui.chkInvertPitch->isChecked() );
tracker->setInvertAxis(Roll, ui.chkInvertRoll->isChecked() );