fix bug with models that contain animations

This commit is contained in:
David Rose 2007-02-16 21:43:24 +00:00
parent e1bee7aff7
commit d39566836d

View File

@ -1588,7 +1588,9 @@ class Actor(DirectObject, NodePath):
# Now we've already bound the animation, but we
# have no associated filename. So store the
# animControl, but put None in for the filename.
self.__animControlDict[lodName][partName][animName] = [None, animControl]
animDef = Actor.AnimDef(None)
animDef.animControl = animControl
self.__animControlDict[lodName][partName][animName] = animDef
def __prepareBundle(self, bundleNP, model,
partName="modelRoot", lodName="lodRoot"):