Jelajahi Sumber

fix from asad for the no-lod copy constructor

Greg Wiatroski 20 tahun lalu
induk
melakukan
ab65fe0cfe
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  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.__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():