From d0d3be7f3895df5997647394853986096f889a1a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 17 Sep 2014 04:24:12 +0200 Subject: hook up axis src logic Issue: #52 --- facetracknoir/tracker.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index ca505315..29855b31 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -119,7 +119,13 @@ void Tracker::run() { QMutexLocker foo(&mtx); for (int i = 0; i < 6; i++) - mainApp->axis(i).headPos = newpose[i]; + { + auto& axis = mainApp->axis(i); + int k = axis.opts.src; + if (k < 0 || k >= 6) + continue; + axis.headPos = newpose[k]; + } if (do_center) { for (int i = 0; i < 6; i++) -- cgit v1.2.3