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
@ -78,12 +78,6 @@ class Actor(DirectObject, NodePath):
|
|||||||
|
|
||||||
def makeCopy(self):
|
def makeCopy(self):
|
||||||
return Actor.SubpartDef(self.truePartName, PartSubset(self.subset))
|
return Actor.SubpartDef(self.truePartName, PartSubset(self.subset))
|
||||||
|
|
||||||
def __getitem__(self,index):
|
|
||||||
if(index==0):
|
|
||||||
return self.truePartName
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
@ -781,7 +775,7 @@ class Actor(DirectObject, NodePath):
|
|||||||
if not partBundleDict:
|
if not partBundleDict:
|
||||||
Actor.notify.warning("no lod named: %s" % (lodName))
|
Actor.notify.warning("no lod named: %s" % (lodName))
|
||||||
return None
|
return None
|
||||||
truePartName = self.__subpartDict.get(partName, [partName])[0]
|
truePartName = self.__subpartDict.get(partName, [partName]).truePartName
|
||||||
partDef = partBundleDict.get(truePartName)
|
partDef = partBundleDict.get(truePartName)
|
||||||
if partDef != None:
|
if partDef != None:
|
||||||
return partDef.partBundle
|
return partDef.partBundle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user