diff --git a/direct/src/interval/ActorInterval.py b/direct/src/interval/ActorInterval.py index 390189f0ff..7f2a86fad5 100644 --- a/direct/src/interval/ActorInterval.py +++ b/direct/src/interval/ActorInterval.py @@ -65,7 +65,8 @@ class ActorInterval(Interval): # Pose anim self.actor.pose(self.animName, frame) # Print debug information - self.notify.debug('goToT() - pose to frame: %d' % frame) + self.notify.debug('ActorInterval.goToT() - %s pose to frame: %d' % + (self.name,frame)) return frame def updateFunc(self, t, event = IVAL_NONE): @@ -73,7 +74,7 @@ class ActorInterval(Interval): Go to time t """ if (self.actor.isEmpty()): - self.notify.warning('updateFunc() - empty actor!') + self.notify.warning('updateFunc() - %s empty actor!' % self.name) return # Update animation based upon current time # Pose or stop anim @@ -84,7 +85,8 @@ class ActorInterval(Interval): self.ignore(self.stopEvent) # Print debug information self.notify.debug( - 'updateFunc() - stoping at frame: ' + + 'ActorInterval.updateFunc() - %s stoping at frame: ' % + self.name + '%d Num frames: %d' % (frame, self.numFrames)) elif self.loop == 1: if event == IVAL_INIT: @@ -94,7 +96,9 @@ class ActorInterval(Interval): self.actor.loop(self.animName, restart=0) self.accept(self.stopEvent, self.actor.stop) # Print debug information - self.notify.debug('updateFunc() - IVAL_INIT looping anim') + self.notify.debug( + 'ActorInterval.updateFunc() - IVAL_INIT %s looping anim' % + self.name) else: # Pose anim self.goToT(t) diff --git a/direct/src/interval/FunctionInterval.py b/direct/src/interval/FunctionInterval.py index 60b79e6b2b..539d44e09b 100644 --- a/direct/src/interval/FunctionInterval.py +++ b/direct/src/interval/FunctionInterval.py @@ -39,7 +39,9 @@ class FunctionInterval(Interval): # Evaluate the function apply(self.function, self.extraArgs) # Print debug information - self.notify.debug('updateFunc() - %s: executing Function' % self.name) + self.notify.debug( + 'FunctionInterval.updateFunc() - %s: executing Function' % + self.name) ### FunctionInterval subclass for throwing events ### class EventInterval(FunctionInterval): diff --git a/direct/src/interval/LerpInterval.py b/direct/src/interval/LerpInterval.py index d1188a2631..be20e90ba8 100644 --- a/direct/src/interval/LerpInterval.py +++ b/direct/src/interval/LerpInterval.py @@ -30,6 +30,9 @@ class LerpInterval(Interval): self.blendType) # Evaluate the lerp self.lerp.setT(t) + # Print debug information + self.notify.debug('LerpInterval.updateFunc() - %s: t = %f' % + (self.name, t)) def getBlend(self, blendType): """__getBlend(self, string) @@ -285,6 +288,10 @@ class LerpFunctionInterval(Interval): data = (self.fromData * (1 - bt)) + (self.toData * bt) # Evaluate function apply(self.function, [data] + self.extraArgs) + # Print debug information + self.notify.debug('LerpFunctionInterval.updateFunc() - %s: t = %f' % + (self.name, t)) + def getBlend(self, blendType): """__getBlend(self, string) Return the C++ blend class corresponding to blendType string diff --git a/direct/src/interval/MopathInterval.py b/direct/src/interval/MopathInterval.py index 9cc998b85e..4610093d35 100644 --- a/direct/src/interval/MopathInterval.py +++ b/direct/src/interval/MopathInterval.py @@ -27,3 +27,7 @@ class MopathInterval(Interval): Go to time t """ self.mopath.goTo(self.node, t) + # Print debug information + self.notify.debug('MopathInterval.updateFunc() - %s: t = %f' % + (self.name, t)) + diff --git a/direct/src/interval/SoundInterval.py b/direct/src/interval/SoundInterval.py index 13857d9dbf..3cecda93df 100644 --- a/direct/src/interval/SoundInterval.py +++ b/direct/src/interval/SoundInterval.py @@ -70,3 +70,9 @@ class SoundInterval(Interval): AudioManager.setLoop(self.sound, 1) # Accept event to kill sound self.accept(self.stopEvent, lambda s = self: AudioManager.stop(s.sound)) + # Print debug information + self.notify.debug('SoundInterval.updateFunc() - %s: t = %f' % + (self.name, t)) + + +