summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-18 14:06:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-18 14:10:21 +0200
commit276b91fb65d553385d2fb2e93c3f581626ff4540 (patch)
tree0193ed9775568675b0bc5094bb167a36282bfe56 /facetracknoir
parenta04a6612389bde2fee04a01ce9284db4a69a654b (diff)
Set disabled axis to zero
Issue: #86
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 79950d98..c7867d2d 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -94,7 +94,10 @@ void Tracker::logic()
auto& axis = m(i);
int k = axis.opts.src;
if (k < 0 || k >= 6)
+ {
+ final_raw(i) = 0;
continue;
+ }
// not really raw, after axis remap -sh
final_raw(i) = newpose[k];
}