From 01232c9e6fdb2a33cf8ba7231a2cbc5c51010c00 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Fri, 18 Mar 2005 01:54:39 +0000 Subject: [PATCH] moved sendcurrentposition to base class --- direct/src/distributed/DistributedSmoothNode.py | 4 ---- direct/src/distributed/DistributedSmoothNodeBase.py | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index d60262f77c..e85a03ae81 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -312,10 +312,6 @@ class DistributedSmoothNode(DistributedNode.DistributedNode, self.forceToTruePosition() self.sendCurrentPosition() - def sendCurrentPosition(self): - self.cnode.initialize(self, self.dclass, self.doId) - self.cnode.sendEverything() - ### Monitor clock sync ### def d_suggestResync(self, avId, timestampA, timestampB, diff --git a/direct/src/distributed/DistributedSmoothNodeBase.py b/direct/src/distributed/DistributedSmoothNodeBase.py index f0f07103bc..459818859e 100755 --- a/direct/src/distributed/DistributedSmoothNodeBase.py +++ b/direct/src/distributed/DistributedSmoothNodeBase.py @@ -84,3 +84,7 @@ class DistributedSmoothNodeBase: taskName = self.taskName("sendPosHpr") task.delayTime = self.__broadcastPeriod return Task.again + + def sendCurrentPosition(self): + self.cnode.initialize(self, self.dclass, self.doId) + self.cnode.sendEverything()