Browse Source

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
rdb 8 years ago
parent
commit
c1679472cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/actor/Actor.py

+ 2 - 2
direct/src/actor/Actor.py

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