mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added resetControls
This commit is contained in:
parent
69fdd9b8a3
commit
1c96f2b970
@ -173,7 +173,13 @@ class ActorInterval(Interval.Interval):
|
|||||||
|
|
||||||
self.state = CInterval.SFinal
|
self.state = CInterval.SFinal
|
||||||
self.intervalDone()
|
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):
|
class LerpAnimInterval(CLerpAnimEffectInterval):
|
||||||
# Blends between two anims. Start both anims first (or use
|
# Blends between two anims. Start both anims first (or use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user