mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
sendUpdate changes
This commit is contained in:
parent
b34260896c
commit
c312904694
@ -258,7 +258,11 @@ class DistributedObject(PandaObject):
|
||||
|
||||
def sendUpdate(self, fieldName, args = [], sendToId = None):
|
||||
if self.cr:
|
||||
self.cr.sendUpdate(self, fieldName, args, sendToId)
|
||||
dg = self.dclass.clientFormatUpdate(
|
||||
fieldName, sendToId or self.doId, args)
|
||||
self.cr.send(dg)
|
||||
else:
|
||||
self.notify.warning("sendUpdate failed, because self.cr is not set")
|
||||
|
||||
def sendDisableMsg(self):
|
||||
self.cr.sendDisableMsg(self.doId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user