mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
actor fix
This commit is contained in:
parent
28110b2774
commit
977a2acf00
@ -1026,15 +1026,12 @@ class Actor(DirectObject, NodePath):
|
|||||||
if joint == None:
|
if joint == None:
|
||||||
Actor.notify.warning("no joint named %s!" % (jointName))
|
Actor.notify.warning("no joint named %s!" % (jointName))
|
||||||
return None
|
return None
|
||||||
finalNode=node
|
|
||||||
if node == None:
|
if node == None:
|
||||||
node = NodePath(ModelNode(jointName))
|
node = self.attachNewNode(jointName)
|
||||||
node.node().setPreserveTransform(ModelNode.PTLocal)
|
|
||||||
node.reparentTo(partDef.partBundleNP)
|
|
||||||
if joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()):
|
if joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()):
|
||||||
node.setMat(joint.getInitialValue())
|
node.setMat(joint.getInitialValue())
|
||||||
elif (lodName!="lodRoot"):
|
|
||||||
node.instanceTo(partDef.partBundleNP)
|
|
||||||
# Store a dictionary of jointName: node to list the controls
|
# Store a dictionary of jointName: node to list the controls
|
||||||
# requested for joints. The controls will actually be applied
|
# requested for joints. The controls will actually be applied
|
||||||
# later, when we load up the animations in bindAnim().
|
# later, when we load up the animations in bindAnim().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user