Browse Source

remove support for old panda

David Rose 22 years ago
parent
commit
7f3800559d
1 changed files with 3 additions and 8 deletions
  1. 3 8
      direct/src/showbase/ShowBase.py

+ 3 - 8
direct/src/showbase/ShowBase.py

@@ -601,14 +601,9 @@ class ShowBase(DirectObject.DirectObject):
         # support legacy code that did not expect a time parameter; it
         # support legacy code that did not expect a time parameter; it
         # will eventually be folded into the normal ButtonThrower,
         # will eventually be folded into the normal ButtonThrower,
         # above.
         # above.
-
-        # Temporary hasattr() for old pandas.
-        if hasattr(ButtonThrower, "setTimeFlag"):
-            self.timeButtonThrower = self.mouseWatcher.attachNewNode(ButtonThrower('timeButtons'))
-            self.timeButtonThrower.node().setPrefix('time-')
-            self.timeButtonThrower.node().setTimeFlag(1)
-        else:
-            self.timeButtonThrower = None
+        self.timeButtonThrower = self.mouseWatcher.attachNewNode(ButtonThrower('timeButtons'))
+        self.timeButtonThrower.node().setPrefix('time-')
+        self.timeButtonThrower.node().setTimeFlag(1)
 
 
         # Tell the gui system about our new mouse watcher.
         # Tell the gui system about our new mouse watcher.
         self.aspect2d.node().setMouseWatcher(self.mouseWatcherNode)
         self.aspect2d.node().setMouseWatcher(self.mouseWatcherNode)