mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
wrapped redirection of unknown avatar messages in try/except
This commit is contained in:
parent
6ae98c3ce7
commit
916fea794f
@ -566,14 +566,15 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
# Let the dclass finish the job
|
# Let the dclass finish the job
|
||||||
do.dclass.receiveUpdate(do, di)
|
do.dclass.receiveUpdate(do, di)
|
||||||
elif not ovUpdated:
|
elif not ovUpdated:
|
||||||
# this next bit is looking for friend handles so that if you get an update
|
# this next bit is looking for avatar handles so that if you get an update
|
||||||
# for an avatar that isn't in your doId2do table but there is a
|
# for an avatar that isn't in your doId2do table but there is a
|
||||||
# friend handle for that object then it's messages will be forwarded to that
|
# avatar handle for that object then it's messages will be forwarded to that
|
||||||
# object. We are currently using that for whisper echoing
|
# object. We are currently using that for whisper echoing
|
||||||
# if you need a more general perpose system consider registering proxy objects on
|
# if you need a more general perpose system consider registering proxy objects on
|
||||||
# a dict and adding the friend handles to that dict when they are created
|
# a dict and adding the avatar handles to that dict when they are created
|
||||||
# then change/remove the old method. I didn't do that because I couldn't think
|
# then change/remove the old method. I didn't do that because I couldn't think
|
||||||
# of a use for it. -JML
|
# of a use for it. -JML
|
||||||
|
try :
|
||||||
handle = self.identifyAvatar(doId)
|
handle = self.identifyAvatar(doId)
|
||||||
if handle:
|
if handle:
|
||||||
dclass = self.dclassesByName[handle.dclassName]
|
dclass = self.dclassesByName[handle.dclassName]
|
||||||
@ -582,6 +583,9 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
else:
|
else:
|
||||||
self.notify.warning(
|
self.notify.warning(
|
||||||
"Asked to update non-existent DistObj " + str(doId))
|
"Asked to update non-existent DistObj " + str(doId))
|
||||||
|
except:
|
||||||
|
self.notify.warning(
|
||||||
|
"Asked to update non-existent DistObj " + str(doId) + "and failed to find it")
|
||||||
|
|
||||||
def __doUpdateOwner(self, doId, di):
|
def __doUpdateOwner(self, doId, di):
|
||||||
ovObj = self.doId2ownerView.get(doId)
|
ovObj = self.doId2ownerView.get(doId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user