generalize for butterflies

This commit is contained in:
David Rose 2002-08-20 21:43:32 +00:00
parent a454feae22
commit fb53a328b4

View File

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