Skip to content

Commit

Permalink
actor: fix makeSubpart on models with pre-bound animations
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb authored and PointSource-xx committed Jul 30, 2019
1 parent f66fd93 commit cfc05df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion direct/src/actor/Actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AnimDef:

def __init__(self, filename = None, animBundle = None):
self.filename = filename
self.animBundle = None
self.animBundle = animBundle
self.animControl = None

def makeCopy(self):
Expand Down Expand Up @@ -1947,6 +1947,7 @@ def loadModel(self, modelPath, partName="modelRoot", lodName="lodRoot",
animName = acc.getAnimName(i)

animDef = Actor.AnimDef()
animDef.animBundle = animControl.getAnim()
animDef.animControl = animControl
self.__animControlDict[lodName][partName][animName] = animDef

Expand Down

0 comments on commit cfc05df

Please sign in to comment.