Browse Source

fixed the nametag not showing up in lower lods

Asad M. Zaman 20 years ago
parent
commit
f1b66dabf3
1 changed files with 3 additions and 0 deletions
  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