David Rose 24 лет назад
Родитель
Сommit
b9b5a40599
2 измененных файлов с 0 добавлено и 10 удалено
  1. 0 5
      direct/src/gui/Label.py
  2. 0 5
      direct/src/gui/OnscreenText.py

+ 0 - 5
direct/src/gui/Label.py

@@ -139,11 +139,6 @@ def textLabelAndText(string, style,
     else:
     else:
         # Otherwise, we can throw it away.
         # Otherwise, we can throw it away.
         node = text.generate()
         node = text.generate()
-
-        #*** Temporary for old Pandas
-        if node == None:
-            node = NamedNode()
-            
         text = node
         text = node
 
 
     # Now create a GuiLabel containing this text.
     # Now create a GuiLabel containing this text.

+ 0 - 5
direct/src/gui/OnscreenText.py

@@ -198,11 +198,6 @@ class OnscreenText(PandaObject, NodePath):
         else:
         else:
             # Otherwise, we can throw it away.
             # Otherwise, we can throw it away.
             self.textNode = textNode.generate()
             self.textNode = textNode.generate()
-
-            #*** Temporary for old Pandas.
-            if self.textNode == None:
-                self.textNode = NamedNode()
-        
         
         
 	self.isClean = 0
 	self.isClean = 0