mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix getPart()
This commit is contained in:
parent
538e31b081
commit
a8b6320080
@ -79,12 +79,6 @@ class Actor(DirectObject, NodePath):
|
||||
def makeCopy(self):
|
||||
return Actor.SubpartDef(self.truePartName, PartSubset(self.subset))
|
||||
|
||||
def __getitem__(self,index):
|
||||
if(index==0):
|
||||
return self.truePartName
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return 'Actor.SubpartDef(%s, %s)' % (repr(self.truePartName), repr(self.subset))
|
||||
@ -781,7 +775,7 @@ class Actor(DirectObject, NodePath):
|
||||
if not partBundleDict:
|
||||
Actor.notify.warning("no lod named: %s" % (lodName))
|
||||
return None
|
||||
truePartName = self.__subpartDict.get(partName, [partName])[0]
|
||||
truePartName = self.__subpartDict.get(partName, [partName]).truePartName
|
||||
partDef = partBundleDict.get(truePartName)
|
||||
if partDef != None:
|
||||
return partDef.partBundle
|
||||
|
Loading…
x
Reference in New Issue
Block a user