minor optimization

This commit is contained in:
David Rose 2001-10-30 05:17:01 +00:00
parent e19f365f19
commit a6d4fe0c07

View File

@ -55,7 +55,7 @@ class EventManager:
eventParameterData = self.parseEventParameter(eventParameter)
paramList.append(eventParameterData)
# Do not print the new frame debug, it is too noisy!
if (eventName != 'NewFrame'):
if (EventManager.notify.getDebug() and eventName != 'NewFrame'):
EventManager.notify.debug('received C++ event named: ' + eventName +
' parameters: ' + `paramList`)
# Send the event, we used to send it with the event