controlJoints should be model nodes anyway

This commit is contained in:
Asad M. Zaman 2008-12-18 21:44:21 +00:00
parent ffc708a0f1
commit 89a8c9032a

View File

@ -1268,7 +1268,7 @@ class Actor(DirectObject, NodePath):
for bundleDict in self.__partBundleDict.values():
bundle = bundleDict[trueName].getBundle()
if node == None:
node = self.attachNewNode(jointName)
node = self.attachNewNode(ModelNode(jointName))
joint = bundle.findChild(jointName)
if joint and isinstance(joint, MovingPartMatrix):
node.setMat(joint.getInitialValue())