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:
rdb 2018-01-05 14:39:39 +01:00
parent 428c5cbbf3
commit c1679472cd
1 changed files with 2 additions and 2 deletions

View File

@ -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: