From 156c36acbb54911ead96c38abb22be39208e1693 Mon Sep 17 00:00:00 2001 From: Justin Butler Date: Thu, 11 Oct 2007 23:21:33 +0000 Subject: [PATCH] Unprivatized posHprBroadcast function so it can be overriden, I did this so asserts from out of range positions can be caught and handled. --- direct/src/distributed/DistributedSmoothNodeBase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/DistributedSmoothNodeBase.py b/direct/src/distributed/DistributedSmoothNodeBase.py index 0c55962a56..a727835c57 100755 --- a/direct/src/distributed/DistributedSmoothNodeBase.py +++ b/direct/src/distributed/DistributedSmoothNodeBase.py @@ -84,9 +84,9 @@ class DistributedSmoothNodeBase: if stagger: delay = randFloat(period) taskMgr.doMethodLater(self.__broadcastPeriod + delay, - self.__posHprBroadcast, taskName) + self._posHprBroadcast, taskName) - def __posHprBroadcast(self, task): + def _posHprBroadcast(self, task): # TODO: we explicitly stagger the initial task timing in # startPosHprBroadcast; we should at least make an effort to keep # this task accurately aligned with its period and starting time. @@ -99,3 +99,4 @@ class DistributedSmoothNodeBase: if self.d_broadcastPosHpr is None: self.cnode.initialize(self, self.dclass, self.doId) self.cnode.sendEverything() +