2
0
Эх сурвалжийг харах

fixed the nametag not showing up in lower lods

Asad M. Zaman 20 жил өмнө
parent
commit
f1b66dabf3

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

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