summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-18 07:05:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-18 07:11:26 +0200
commita7b2d44ab4eaf3c8d69e1818db57a674178054b3 (patch)
treee6c329d5bd1effbffc430ce62f1934884a6167d3
parent9d20e7db43fa2be016697032784df279370ba32e (diff)
fix ypr when translation-compensating
-rw-r--r--facetracknoir/tracker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 0f299153..79950d98 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -123,10 +123,9 @@ void Tracker::logic()
Pose mapped_pose;
+ mapped_pose = mapped_pose_precomp;
if (s.tcomp_p)
t_compensate(mapped_pose_precomp, mapped_pose, s.tcomp_tz);
- else
- mapped_pose = mapped_pose_precomp;
Libraries->pProtocol->sendHeadposeToGame(mapped_pose);