Add assert before notify.

This commit is contained in:
aignacio_sf 2006-10-11 20:18:31 +00:00
parent 89b4b41339
commit 19eebe69c1
2 changed files with 16 additions and 14 deletions

View File

@ -648,8 +648,10 @@ class LerpFunctionInterval(Interval.Interval):
data = (self.fromData * (1 - bt)) + (self.toData * bt)
# Evaluate function
apply(self.function, [data] + self.extraArgs)
# Print debug information
self.notify.debug('updateFunc() - %s: t = %f' % (self.name, t))
assert self.notify.debug('updateFunc() - %s: t = %f' % (self.name, t))
self.state = CInterval.SStarted
self.currT = t

View File

@ -159,7 +159,7 @@ class Messenger:
Send this event, optionally passing in arguments
"""
if Messenger.notify.getDebug() and not self.quieting.get(event):
Messenger.notify.debug(
assert Messenger.notify.debug(
'sent event: ' + event + ' sentArgs: ' + `sentArgs`)
if __debug__:
foundWatch=0