mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
less spam from the messenger on the AI logs
This commit is contained in:
parent
d5c8b6f490
commit
bd2c0c7b14
@ -66,10 +66,10 @@ class Messenger:
|
||||
|
||||
# Make sure we are not inadvertently overwriting an existing event
|
||||
# on this particular object.
|
||||
if __debug__:
|
||||
if Messenger.notify.getDebug():
|
||||
if acceptorDict.has_key(object):
|
||||
oldMethod = acceptorDict[object][0]
|
||||
if oldMethod == method:
|
||||
if oldMethod == method:
|
||||
self.notify.warning(
|
||||
"object: %s was already accepting: \"%s\" with same callback: %s()" %
|
||||
(object.__class__.__name__, event, method.__name__))
|
||||
|
Loading…
x
Reference in New Issue
Block a user