diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-02 00:20:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-02 00:20:50 +0100 |
commit | 7cc7876eda30779ab7a9c7a4fbb58cc675fa3f9b (patch) | |
tree | 8b0f9a871282e2215a00fa6c684189d2b9d30a15 | |
parent | b4217a4a98fe1837556544b38ed29cbd76d2b2c5 (diff) |
tracker/pt: disallow dynamic pose for clips
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |