From 977a2acf00c07f077a9b4f025f7c208b1f2877de Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Wed, 17 Jan 2007 04:45:52 +0000 Subject: [PATCH] actor fix --- direct/src/actor/Actor.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 66eeee41e4..9af0c33fca 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1026,15 +1026,12 @@ class Actor(DirectObject, NodePath): if joint == None: Actor.notify.warning("no joint named %s!" % (jointName)) return None - finalNode=node + if node == None: - node = NodePath(ModelNode(jointName)) - node.node().setPreserveTransform(ModelNode.PTLocal) - node.reparentTo(partDef.partBundleNP) + node = self.attachNewNode(jointName) if joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()): node.setMat(joint.getInitialValue()) - elif (lodName!="lodRoot"): - node.instanceTo(partDef.partBundleNP) + # Store a dictionary of jointName: node to list the controls # requested for joints. The controls will actually be applied # later, when we load up the animations in bindAnim().