From f86360a303219193f3a0f03e85832bcbdc69c957 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 8 Aug 2008 00:09:21 +0000 Subject: [PATCH] small opts --- direct/src/actor/Actor.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index fed0964530..677415cabd 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1093,12 +1093,6 @@ class Actor(DirectObject, NodePath): It used to be necessary to call this before any animations have been loaded and bound, but that is no longer so. """ - # Temporary condition for old Pandas. - if not hasattr(PartBundle, 'controlJoint'): - if node == None: - node = self.attachNewNode(jointName) - return node - subpartDef = self.__subpartDict.get(partName, Actor.SubpartDef(partName)) trueName = subpartDef.truePartName anyGood = False @@ -1107,7 +1101,7 @@ class Actor(DirectObject, NodePath): if node == None: node = self.attachNewNode(jointName) joint = bundle.findChild(jointName) - if joint and joint.getType().isDerivedFrom(MovingPartMatrix.getClassType()): + if joint and isinstance(joint, MovingPartMatrix): node.setMat(joint.getInitialValue()) if bundle.controlJoint(jointName, node.node()):