mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Add assert before notify.
This commit is contained in:
parent
89b4b41339
commit
19eebe69c1
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user