mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
generalize for butterflies
This commit is contained in:
parent
a454feae22
commit
fb53a328b4
@ -165,8 +165,10 @@ class LerpAnimInterval(Interval.Interval):
|
||||
w = self.startWeight + t * self.deltaWeight
|
||||
|
||||
# Apply that weight to the two anims.
|
||||
self.actor.setControlEffect(self.endAnim, w)
|
||||
self.actor.setControlEffect(self.startAnim, 1.0 - w)
|
||||
if self.startAnim != None:
|
||||
self.actor.setControlEffect(self.startAnim, 1.0 - w)
|
||||
if self.endAnim != None:
|
||||
self.actor.setControlEffect(self.endAnim, w)
|
||||
|
||||
|
||||
def getBlend(self, blendType):
|
||||
|
Loading…
x
Reference in New Issue
Block a user