소스 검색

small opts

David Rose 17 년 전
부모
커밋
f86360a303
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      direct/src/actor/Actor.py

+ 1 - 7
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()):