mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
*** empty log message ***
This commit is contained in:
parent
0ec66737d1
commit
15f312f2b1
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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))
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user