discovered a bug in the getanimcontrol

This commit is contained in:
Asad M. Zaman 2007-05-03 21:35:18 +00:00
parent a8ded4dffd
commit 7ee602f933
1 changed files with 1 additions and 4 deletions

View File

@ -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: