From fc993f793c875f83c0cdeea07641a46b6d2fbc88 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Fri, 2 Nov 2007 00:16:00 +0000 Subject: [PATCH] applying smooth updates immediately if smoothing not enabled --- direct/src/distributed/DistributedSmoothNode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index c16ed16170..dd1dde881b 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -160,7 +160,6 @@ class DistributedSmoothNode(DistributedNode.DistributedNode, used whenever show code bangs on the node position and expects it to stick. """ - #printStack() self.smoother.clearPositions(0) self.smoother.setMat(self.getMat()) self.smoother.setPhonyTimestamp() @@ -297,6 +296,10 @@ class DistributedSmoothNode(DistributedNode.DistributedNode, self.smoother.setTimestamp(local) self.smoother.markPosition() + if not self.smoothStarted and \ + self.smoother.getLatestPosition(): + self.smoother.applySmoothMat(self) + def clearSmoothing(self, bogus = None): # Call this to invalidate all the old position reports # (e.g. just before popping to a new position).