From 7ee602f9339dcb42047a2daf78a722cc99582eb3 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 3 May 2007 21:35:18 +0000 Subject: [PATCH] discovered a bug in the getanimcontrol --- direct/src/actor/Actor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 26e603a9e6..5892c9f166 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1403,10 +1403,7 @@ class Actor(DirectObject, NodePath): Return the animControl if present, or None otherwise """ if not partName: - if self.__subpartDict.keys(): - partName = self.__subpartDict.keys()[0] - else: - partName = 'modelRoot' + partName = 'modelRoot' if not lodName: if self.switches: