mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
implicit node for exposeJoint
This commit is contained in:
parent
7b14e4ea5f
commit
372c6bb69b
@ -680,11 +680,16 @@ class Actor(PandaObject, NodePath):
|
|||||||
# Get a handle to the joint.
|
# Get a handle to the joint.
|
||||||
joint = bundle.findChild(jointName)
|
joint = bundle.findChild(jointName)
|
||||||
|
|
||||||
|
if node == None:
|
||||||
|
node = self.attachNewNode(jointName)
|
||||||
|
|
||||||
if (joint):
|
if (joint):
|
||||||
joint.addNetTransform(node.node())
|
joint.addNetTransform(node.node())
|
||||||
else:
|
else:
|
||||||
Actor.notify.warning("no joint named %s!" % (jointName))
|
Actor.notify.warning("no joint named %s!" % (jointName))
|
||||||
|
|
||||||
|
return node
|
||||||
|
|
||||||
def stopJoint(self, partName, jointName, lodName="lodRoot"):
|
def stopJoint(self, partName, jointName, lodName="lodRoot"):
|
||||||
"""stopJoint(self, string, string, key="lodRoot")
|
"""stopJoint(self, string, string, key="lodRoot")
|
||||||
Stops the joint from animating external nodes. If the joint
|
Stops the joint from animating external nodes. If the joint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user