From 880b413c0015815e4c8dc2313460a5c85f756578 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Thu, 21 Dec 2000 22:40:39 +0000 Subject: [PATCH] only take real updates --- direct/src/deadrec/correction.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/deadrec/correction.cxx b/direct/src/deadrec/correction.cxx index d7488250b2..7a88ff2a69 100644 --- a/direct/src/deadrec/correction.cxx +++ b/direct/src/deadrec/correction.cxx @@ -66,6 +66,8 @@ void LerpCorrection::step(void) { } void LerpCorrection::new_target(LPoint3f& target, LVector3f&) { + if (target == save_p) + return; if (have_both) { time = 0.; prev_p = _curr_p; @@ -101,6 +103,8 @@ void SplineCorrection::step(void) { } void SplineCorrection::new_target(LPoint3f& target, LVector3f& v_target) { + if (target == save_p) + return; if (have_both) { time = 0.; prev_p = _curr_p;