diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 077f1d7c73..f33c330fd5 100644 --- a/direct/src/showbase/ShowBase.py +++ b/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)