Browse Source

fix from asad for the no-lod copy constructor

Greg Wiatroski 20 years ago
parent
commit
ab65fe0cfe
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/actor/Actor.py

+ 5 - 2
direct/src/actor/Actor.py

@@ -1587,8 +1587,11 @@ class Actor(DirectObject, NodePath):
             self.__partBundleDict[lodName] = {}
             self.__partBundleDict[lodName] = {}
             self.__updateSortedLODNames()
             self.__updateSortedLODNames()
             # find the lod :Asad:
             # 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))
                 Actor.notify.warning("no lod named: %s" % (lodName))
                 return None
                 return None
             for partName in other.__partBundleDict[lodName].keys():
             for partName in other.__partBundleDict[lodName].keys():