added resetControls

This commit is contained in:
Samir Naik 2005-01-25 21:14:11 +00:00
parent 69fdd9b8a3
commit 1c96f2b970

View File

@ -173,7 +173,13 @@ class ActorInterval(Interval.Interval):
self.state = CInterval.SFinal
self.intervalDone()
# If we want to change what part this interval is playing on after
# the interval has been created, call resetControls and pass in a partName
# and optional lod param
def resetControls(self, partName, lodName=None):
self.controls = self.actor.getAnimControls(
self.animName, partName = partName, lodName = lodName)
class LerpAnimInterval(CLerpAnimEffectInterval):
# Blends between two anims. Start both anims first (or use