Browse Source

fixed the nametag not showing up in lower lods

Asad M. Zaman 20 năm trước cách đây
mục cha
commit
f1b66dabf3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      direct/src/actor/Actor.py

+ 3 - 0
direct/src/actor/Actor.py

@@ -241,6 +241,9 @@ class Actor(DirectObject, NodePath):
             # copy the switches for lods
             self.switches = other.switches
             self.__LODNode = self.find('**/+LODNode')
+            self.__hasLOD = 0
+            if (not self.__LODNode.isEmpty()):
+                self.__hasLOD = 1
 
     def __cmp__(self, other):
         # Actor inherits from NodePath, which inherits a definition of