Browse Source

Smoothing pop fix when an object starts moving after not moving for a while.

Justin Butler 19 years ago
parent
commit
3a4872bac0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/deadrec/smoothMover.cxx

+ 3 - 0
direct/src/deadrec/smoothMover.cxx

@@ -386,6 +386,8 @@ compute_smooth_position(double timestamp) {
 
 
     // And if there's only one point left, remove even that one
     // And if there's only one point left, remove even that one
     // after a while.
     // after a while.
+    /* jbutler: commented this out, seems to cause the smoothing pop that occurs
+                when this object is stopped for a while then starts moving again
     if (_points.size() == 1) {
     if (_points.size() == 1) {
       double age = timestamp - _points.back()._timestamp;
       double age = timestamp - _points.back()._timestamp;
       //cerr << "considering clearing all points, age = " << age << "\n";
       //cerr << "considering clearing all points, age = " << age << "\n";
@@ -394,6 +396,7 @@ compute_smooth_position(double timestamp) {
         _points.clear();
         _points.clear();
       }
       }
     }
     }
+    */
   }
   }
 
 
   //cerr << "  result = " << result << "\n";
   //cerr << "  result = " << result << "\n";