fix from asad for the no-lod copy constructor

This commit is contained in:
Greg Wiatroski 2006-02-21 22:25:30 +00:00
parent 2cdd4644f3
commit ab65fe0cfe
1 changed files with 5 additions and 2 deletions

View File

@ -1587,8 +1587,11 @@ class Actor(DirectObject, NodePath):
self.__partBundleDict[lodName] = {}
self.__updateSortedLODNames()
# find the lod :Asad:
partLod = self.find("**/" + lodName)
if (partLod == None):
if lodName == 'lodRoot':
partLod = self
else:
partLod = self.find("**/" + lodName)
if partLod.isEmpty():
Actor.notify.warning("no lod named: %s" % (lodName))
return None
for partName in other.__partBundleDict[lodName].keys():