clear control effects on anim controls before deleting

This commit is contained in:
Joe Shochet 2005-08-03 21:41:59 +00:00
parent ffd10ae9a1
commit 570a6faf71
1 changed files with 5 additions and 0 deletions

View File

@ -1320,6 +1320,11 @@ class Actor(PandaObject, NodePath):
# delete the anim control
animControlPair = self.__animControlDict[lodName][partName][animName]
if animControlPair[1] != None:
# Try to clear any control effects before we let
# our handle on them go. This is especially
# important if the anim control was blending
# animations.
animControlPair[1].getPart().clearControlEffects()
del(animControlPair[1])
animControlPair.append(None)