From 7cc7876eda30779ab7a9c7a4fbb58cc675fa3f9b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 2 Mar 2019 00:20:50 +0100 Subject: tracker/pt: disallow dynamic pose for clips --- tracker-pt/ftnoir_tracker_pt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index a2272d1c..97404ec4 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -82,10 +82,14 @@ void Tracker_PT::run() if (success) { + int dynamic_pose_ms = s.dynamic_pose && s.active_model_panel != PointModel::Clip + ? s.init_phase_timeout + : 0; + point_tracker.track(points, PointModel(s), info, - s.dynamic_pose ? s.init_phase_timeout : 0); + dynamic_pose_ms); ever_success.store(true, std::memory_order_relaxed); } -- cgit v1.2.3