From 3a4872bac0d00b1abbbdcb4fed3768bf96b6f7f3 Mon Sep 17 00:00:00 2001 From: Justin Butler Date: Thu, 20 Apr 2006 00:58:23 +0000 Subject: [PATCH] Smoothing pop fix when an object starts moving after not moving for a while. --- direct/src/deadrec/smoothMover.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/deadrec/smoothMover.cxx b/direct/src/deadrec/smoothMover.cxx index fe0b9083e9..ee5612c49a 100644 --- a/direct/src/deadrec/smoothMover.cxx +++ b/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 // 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) { double age = timestamp - _points.back()._timestamp; //cerr << "considering clearing all points, age = " << age << "\n"; @@ -394,6 +396,7 @@ compute_smooth_position(double timestamp) { _points.clear(); } } + */ } //cerr << " result = " << result << "\n";