From 11066cc96bbc847ce47dbcd73d7996dc660dda70 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 30 Aug 2007 19:03:17 +0000 Subject: [PATCH] don't re-initialize the smoother in sendCurrentPosition if we're in the middle of broadcasting --- direct/src/distributed/DistributedSmoothNodeBase.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedSmoothNodeBase.py b/direct/src/distributed/DistributedSmoothNodeBase.py index 7aa2eda157..540a6a1f9a 100755 --- a/direct/src/distributed/DistributedSmoothNodeBase.py +++ b/direct/src/distributed/DistributedSmoothNodeBase.py @@ -12,6 +12,7 @@ class DistributedSmoothNodeBase: def __init__(self): self.cnode = CDistributedSmoothNodeBase() self.cnode.setClockDelta(globalClockDelta) + self.d_broadcastPosHpr = None def delete(self): # make sure our task is gone @@ -87,5 +88,7 @@ class DistributedSmoothNodeBase: return Task.again def sendCurrentPosition(self): - self.cnode.initialize(self, self.dclass, self.doId) + # if we're not currently broadcasting, make sure things are set up + if self.d_broadcastPosHpr is None: + self.cnode.initialize(self, self.dclass, self.doId) self.cnode.sendEverything()