From 1f8145837054d3a71354c6e12beb1ea8789592c7 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Tue, 12 Apr 2005 23:23:26 +0000 Subject: [PATCH] Added code to initialize the controlJoint's valueNode --- direct/src/actor/Actor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 203bd48170..e6f7c70f38 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -768,6 +768,8 @@ class Actor(PandaObject, NodePath): if node == None: node = self.attachNewNode(jointName) + if joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()): + node.setMat(joint.getInitialValue()) # Store a dictionary of jointName : node to list the controls # requested for joints. The controls will actually be applied @@ -1367,6 +1369,8 @@ class Actor(PandaObject, NodePath): joint = animBundle.makeChildDynamic(jointName) if joint: joint.setValueNode(node.node()) + else: + Actor.notify.debug("controlled joint %s is not present", jointName) # bind anim animControl = bundle.bindAnim(animBundle, -1)