mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Unprivatized posHprBroadcast function so it can be overriden, I did this so asserts from out of range positions can be caught and handled.
This commit is contained in:
parent
a5502e3b43
commit
156c36acbb
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user