From 7f3800559d2260e0a5c1376f439df8d323541ffe Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 20 Jan 2004 19:56:22 +0000 Subject: [PATCH] remove support for old panda --- direct/src/showbase/ShowBase.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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)