Browse Source

*** empty log message ***

Mark Mine 24 years ago
parent
commit
15f312f2b1

+ 8 - 4
direct/src/interval/ActorInterval.py

@@ -65,7 +65,8 @@ class ActorInterval(Interval):
         # Pose anim
         # Pose anim
         self.actor.pose(self.animName, frame)
         self.actor.pose(self.animName, frame)
         # Print debug information
         # 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
         return frame
 
 
     def updateFunc(self, t, event = IVAL_NONE):
     def updateFunc(self, t, event = IVAL_NONE):
@@ -73,7 +74,7 @@ class ActorInterval(Interval):
 	    Go to time t
 	    Go to time t
 	"""
 	"""
 	if (self.actor.isEmpty()):
 	if (self.actor.isEmpty()):
-	    self.notify.warning('updateFunc() - empty actor!')
+	    self.notify.warning('updateFunc() - %s empty actor!' % self.name)
 	    return
 	    return
         # Update animation based upon current time
         # Update animation based upon current time
         # Pose or stop anim
         # Pose or stop anim
@@ -84,7 +85,8 @@ class ActorInterval(Interval):
                 self.ignore(self.stopEvent)
                 self.ignore(self.stopEvent)
             # Print debug information
             # Print debug information
 	    self.notify.debug(
 	    self.notify.debug(
-                'updateFunc() - stoping at frame: ' +
+                'ActorInterval.updateFunc() - %s stoping at frame: ' %
+                self.name +
                 '%d Num frames: %d' % (frame, self.numFrames))
                 '%d Num frames: %d' % (frame, self.numFrames))
         elif self.loop == 1:
         elif self.loop == 1:
             if event == IVAL_INIT:
             if event == IVAL_INIT:
@@ -94,7 +96,9 @@ class ActorInterval(Interval):
                 self.actor.loop(self.animName, restart=0)
                 self.actor.loop(self.animName, restart=0)
                 self.accept(self.stopEvent, self.actor.stop)
                 self.accept(self.stopEvent, self.actor.stop)
                 # Print debug information
                 # Print debug information
-                self.notify.debug('updateFunc() - IVAL_INIT looping anim')
+                self.notify.debug(
+                    'ActorInterval.updateFunc() - IVAL_INIT %s looping anim' %
+                    self.name)
         else:
         else:
             # Pose anim
             # Pose anim
             self.goToT(t)
             self.goToT(t)

+ 3 - 1
direct/src/interval/FunctionInterval.py

@@ -39,7 +39,9 @@ class FunctionInterval(Interval):
         # Evaluate the function
         # Evaluate the function
         apply(self.function, self.extraArgs)
         apply(self.function, self.extraArgs)
         # Print debug information
         # 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 ###
 ### FunctionInterval subclass for throwing events ###
 class EventInterval(FunctionInterval):
 class EventInterval(FunctionInterval):

+ 7 - 0
direct/src/interval/LerpInterval.py

@@ -30,6 +30,9 @@ class LerpInterval(Interval):
                                   self.blendType)
                                   self.blendType)
         # Evaluate the lerp
         # Evaluate the lerp
         self.lerp.setT(t)
         self.lerp.setT(t)
+        # Print debug information
+        self.notify.debug('LerpInterval.updateFunc() - %s: t = %f' %
+                          (self.name, t))
 
 
     def getBlend(self, blendType):
     def getBlend(self, blendType):
         """__getBlend(self, string)
         """__getBlend(self, string)
@@ -285,6 +288,10 @@ class LerpFunctionInterval(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
+        self.notify.debug('LerpFunctionInterval.updateFunc() - %s: t = %f' %
+                          (self.name, t))
+            
     def getBlend(self, blendType):
     def getBlend(self, blendType):
         """__getBlend(self, string)
         """__getBlend(self, string)
         Return the C++ blend class corresponding to blendType string
         Return the C++ blend class corresponding to blendType string

+ 4 - 0
direct/src/interval/MopathInterval.py

@@ -27,3 +27,7 @@ class MopathInterval(Interval):
 	    Go to time t
 	    Go to time t
 	"""
 	"""
         self.mopath.goTo(self.node, t)
         self.mopath.goTo(self.node, t)
+        # Print debug information
+        self.notify.debug('MopathInterval.updateFunc() - %s: t = %f' %
+                          (self.name, t))
+

+ 6 - 0
direct/src/interval/SoundInterval.py

@@ -70,3 +70,9 @@ class SoundInterval(Interval):
 		AudioManager.setLoop(self.sound, 1)
 		AudioManager.setLoop(self.sound, 1)
             # Accept event to kill sound
             # Accept event to kill sound
             self.accept(self.stopEvent, lambda s = self: AudioManager.stop(s.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))
+            
+
+