mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix getPartNames() when no parts are available
This commit is contained in:
parent
ade5993d76
commit
2194792fae
@ -494,8 +494,10 @@ class Actor(DirectObject, NodePath):
|
||||
Return list of Actor part names. If not an multipart actor,
|
||||
returns 'modelRoot' NOTE: returns parts of arbitrary LOD
|
||||
"""
|
||||
return self.__partBundleDict.values()[0].keys() + self.__subpartDict.keys()
|
||||
|
||||
partNames = []
|
||||
if self.__partBundleDict:
|
||||
partNames = self.__partBundleDict.values()[0].keys()
|
||||
return partNames + self.__subpartDict.keys()
|
||||
|
||||
def getGeomNode(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user