mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
allow None for callback
This commit is contained in:
parent
7c2051a37a
commit
7ebfb76429
@ -272,7 +272,8 @@ class DistributedObject(PandaObject):
|
|||||||
if tuple:
|
if tuple:
|
||||||
callback, extraArgs = tuple
|
callback, extraArgs = tuple
|
||||||
completeArgs = args + extraArgs
|
completeArgs = args + extraArgs
|
||||||
callback(*completeArgs)
|
if callback != None:
|
||||||
|
callback(*completeArgs)
|
||||||
del self.__callbacks[context]
|
del self.__callbacks[context]
|
||||||
else:
|
else:
|
||||||
self.notify.warning("Got unexpected context from AI: %s" % (context))
|
self.notify.warning("Got unexpected context from AI: %s" % (context))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user