2
0
Samir Naik 21 жил өмнө
parent
commit
1c96f2b970

+ 7 - 1
direct/src/interval/ActorInterval.py

@@ -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