瀏覽代碼

remove support for old panda

David Rose 22 年之前
父節點
當前提交
7f3800559d
共有 1 個文件被更改,包括 3 次插入8 次删除
  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
         # will eventually be folded into the normal ButtonThrower,
         # 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.
         self.aspect2d.node().setMouseWatcher(self.mouseWatcherNode)