mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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,
|
Return list of Actor part names. If not an multipart actor,
|
||||||
returns 'modelRoot' NOTE: returns parts of arbitrary LOD
|
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):
|
def getGeomNode(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user