浏览代码

only take real updates

Cary Sandvig 25 年之前
父节点
当前提交
880b413c00
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      direct/src/deadrec/correction.cxx

+ 4 - 0
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;