mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
moved sendcurrentposition to base class
This commit is contained in:
parent
e4c5327f05
commit
01232c9e6f
@ -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,
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user