瀏覽代碼

fix from asad for the no-lod copy constructor

Greg Wiatroski 20 年之前
父節點
當前提交
ab65fe0cfe
共有 1 個文件被更改,包括 5 次插入2 次删除
  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():