瀏覽代碼

applying smooth updates immediately if smoothing not enabled

Josh Wilson 18 年之前
父節點
當前提交
fc993f793c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      direct/src/distributed/DistributedSmoothNode.py

+ 4 - 1
direct/src/distributed/DistributedSmoothNode.py

@@ -160,7 +160,6 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
         used whenever show code bangs on the node position and expects
         used whenever show code bangs on the node position and expects
         it to stick.
         it to stick.
         """
         """
-        #printStack()
         self.smoother.clearPositions(0)
         self.smoother.clearPositions(0)
         self.smoother.setMat(self.getMat())
         self.smoother.setMat(self.getMat())
         self.smoother.setPhonyTimestamp()
         self.smoother.setPhonyTimestamp()
@@ -297,6 +296,10 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
             self.smoother.setTimestamp(local)
             self.smoother.setTimestamp(local)
             self.smoother.markPosition()
             self.smoother.markPosition()
 
 
+        if not self.smoothStarted and \
+           self.smoother.getLatestPosition():
+            self.smoother.applySmoothMat(self)
+                
     def clearSmoothing(self, bogus = None):
     def clearSmoothing(self, bogus = None):
         # Call this to invalidate all the old position reports
         # Call this to invalidate all the old position reports
         # (e.g. just before popping to a new position).
         # (e.g. just before popping to a new position).