diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 20:57:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 20:57:35 +0200 |
commit | df7969c687a0e6a5e6cbed8cabaf11c51058d35a (patch) | |
tree | de899143c4b163c7680ed24bbac7cab2c3f9ee80 | |
parent | ee1bc50aea27ab75bd50b62f393f6f51cdc3aa53 (diff) |
don't even display headpose when off
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-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 d1218098..53b3ffd3 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -122,7 +122,7 @@ void Tracker::run() { Libraries->pFilter->Initialize();
}
- if (confid) {
+ if (confid && enabled) {
// get values
for (int i = 0; i < 6; i++)
target_camera.axes[i] = mainApp->axis(i).headPos;
@@ -147,7 +147,7 @@ void Tracker::run() { }
// Send the headpose to the game
- if (Libraries->pProtocol && enabled) {
+ if (Libraries->pProtocol) {
gameoutput_camera = output_camera;
Libraries->pProtocol->sendHeadposeToGame( gameoutput_camera.axes, newpose ); // degrees & centimeters
}
|