From c1679472cd338b147ed2c11043be08e7cffafb19 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 5 Jan 2018 14:39:39 +0100 Subject: [PATCH] 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 --- direct/src/actor/Actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 8a7ef093b0..b9ba299aaa 100644 --- a/direct/src/actor/Actor.py +++ b/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: