use copyBundle()

This commit is contained in:
David Rose 2007-01-17 18:06:22 +00:00
parent b815350406
commit bffc110045

View File

@ -1832,6 +1832,11 @@ class Actor(DirectObject, NodePath):
assert Actor.notify.debug('actor bundle %s, %s'% (bundle,bundle.this))
controlDict = self.__controlJoints.get(bundle.this, None)
if controlDict:
# Before we apply any control joints, we have to make a
# copy of the bundle hierarchy, so we don't modify other
# Actors that share the same bundle.
animBundle = animBundle.copyBundle()
for jointName, node in controlDict.items():
if node:
joint = animBundle.makeChildDynamic(jointName)