From 372c6bb69bbe3c96e0321551d8b3f90a7391cb2c Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 21 Oct 2003 18:57:52 +0000 Subject: [PATCH] implicit node for exposeJoint --- direct/src/actor/Actor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 1ee968d23a..4753cc9827 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -680,11 +680,16 @@ class Actor(PandaObject, NodePath): # Get a handle to the joint. joint = bundle.findChild(jointName) + if node == None: + node = self.attachNewNode(jointName) + if (joint): joint.addNetTransform(node.node()) else: Actor.notify.warning("no joint named %s!" % (jointName)) + return node + def stopJoint(self, partName, jointName, lodName="lodRoot"): """stopJoint(self, string, string, key="lodRoot") Stops the joint from animating external nodes. If the joint