mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Added code to initialize the controlJoint's valueNode
This commit is contained in:
parent
e0d0f8a8b7
commit
1f81458370
@ -768,6 +768,8 @@ class Actor(PandaObject, NodePath):
|
|||||||
|
|
||||||
if node == None:
|
if node == None:
|
||||||
node = self.attachNewNode(jointName)
|
node = self.attachNewNode(jointName)
|
||||||
|
if joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()):
|
||||||
|
node.setMat(joint.getInitialValue())
|
||||||
|
|
||||||
# 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
|
||||||
@ -1367,6 +1369,8 @@ class Actor(PandaObject, NodePath):
|
|||||||
joint = animBundle.makeChildDynamic(jointName)
|
joint = animBundle.makeChildDynamic(jointName)
|
||||||
if joint:
|
if joint:
|
||||||
joint.setValueNode(node.node())
|
joint.setValueNode(node.node())
|
||||||
|
else:
|
||||||
|
Actor.notify.debug("controlled joint %s is not present", jointName)
|
||||||
|
|
||||||
# bind anim
|
# bind anim
|
||||||
animControl = bundle.bindAnim(animBundle, -1)
|
animControl = bundle.bindAnim(animBundle, -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user