actor: change parent of exposed joint to character
This prevents exposed joints from not being affected by a transform directly on the Character node. See panda3d/panda3d#221 for more details. Fixes #221
This commit is contained in:
parent
428c5cbbf3
commit
c1679472cd
|
|
@ -1103,8 +1103,8 @@ class Actor(DirectObject, NodePath):
|
|||
# Get a handle to the joint.
|
||||
joint = bundle.findChild(jointName)
|
||||
|
||||
if node == None:
|
||||
node = self.attachNewNode(jointName)
|
||||
if node is None:
|
||||
node = partDef.partBundleNP.attachNewNode(jointName)
|
||||
|
||||
if (joint):
|
||||
if localTransform:
|
||||
|
|
|
|||
Loading…
Reference in New Issue