mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
use copyBundle()
This commit is contained in:
parent
b815350406
commit
bffc110045
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user