diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-18 14:06:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-18 14:10:21 +0200 |
commit | 276b91fb65d553385d2fb2e93c3f581626ff4540 (patch) | |
tree | 0193ed9775568675b0bc5094bb167a36282bfe56 /facetracknoir | |
parent | a04a6612389bde2fee04a01ce9284db4a69a654b (diff) |
Set disabled axis to zero
Issue: #86
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/tracker.cpp | 3 |
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]; } |