mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -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)
|
data = (self.fromData * (1 - bt)) + (self.toData * bt)
|
||||||
# Evaluate function
|
# Evaluate function
|
||||||
apply(self.function, [data] + self.extraArgs)
|
apply(self.function, [data] + self.extraArgs)
|
||||||
|
|
||||||
# Print debug information
|
# 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.state = CInterval.SStarted
|
||||||
self.currT = t
|
self.currT = t
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class Messenger:
|
|||||||
Send this event, optionally passing in arguments
|
Send this event, optionally passing in arguments
|
||||||
"""
|
"""
|
||||||
if Messenger.notify.getDebug() and not self.quieting.get(event):
|
if Messenger.notify.getDebug() and not self.quieting.get(event):
|
||||||
Messenger.notify.debug(
|
assert Messenger.notify.debug(
|
||||||
'sent event: ' + event + ' sentArgs: ' + `sentArgs`)
|
'sent event: ' + event + ' sentArgs: ' + `sentArgs`)
|
||||||
if __debug__:
|
if __debug__:
|
||||||
foundWatch=0
|
foundWatch=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user