mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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.forceToTruePosition()
|
||||||
self.sendCurrentPosition()
|
self.sendCurrentPosition()
|
||||||
|
|
||||||
def sendCurrentPosition(self):
|
|
||||||
self.cnode.initialize(self, self.dclass, self.doId)
|
|
||||||
self.cnode.sendEverything()
|
|
||||||
|
|
||||||
### Monitor clock sync ###
|
### Monitor clock sync ###
|
||||||
|
|
||||||
def d_suggestResync(self, avId, timestampA, timestampB,
|
def d_suggestResync(self, avId, timestampA, timestampB,
|
||||||
|
@ -84,3 +84,7 @@ class DistributedSmoothNodeBase:
|
|||||||
taskName = self.taskName("sendPosHpr")
|
taskName = self.taskName("sendPosHpr")
|
||||||
task.delayTime = self.__broadcastPeriod
|
task.delayTime = self.__broadcastPeriod
|
||||||
return Task.again
|
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