Browse Source

discovered a bug in the getanimcontrol

Asad M. Zaman 18 years ago
parent
commit
7ee602f933
1 changed files with 1 additions and 4 deletions
  1. 1 4
      direct/src/actor/Actor.py

+ 1 - 4
direct/src/actor/Actor.py

@@ -1403,10 +1403,7 @@ class Actor(DirectObject, NodePath):
         Return the animControl if present, or None otherwise
         Return the animControl if present, or None otherwise
         """
         """
         if not partName:
         if not partName:
-            if self.__subpartDict.keys():
-                partName = self.__subpartDict.keys()[0]
-            else:
-                partName = 'modelRoot'
+            partName = 'modelRoot'
 
 
         if not lodName:
         if not lodName:
             if self.switches:
             if self.switches: