From 276b91fb65d553385d2fb2e93c3f581626ff4540 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Oct 2014 14:06:27 +0200 Subject: Set disabled axis to zero Issue: #86 --- facetracknoir/tracker.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'facetracknoir') 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]; } -- cgit v1.2.3