remove support for old panda

This commit is contained in:
David Rose 2004-01-20 19:56:22 +00:00
parent a3f8c0fb5d
commit 7f3800559d

View File

@ -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.
self.timeButtonThrower = self.mouseWatcher.attachNewNode(ButtonThrower('timeButtons'))
# Temporary hasattr() for old pandas. self.timeButtonThrower.node().setPrefix('time-')
if hasattr(ButtonThrower, "setTimeFlag"): self.timeButtonThrower.node().setTimeFlag(1)
self.timeButtonThrower = self.mouseWatcher.attachNewNode(ButtonThrower('timeButtons'))
self.timeButtonThrower.node().setPrefix('time-')
self.timeButtonThrower.node().setTimeFlag(1)
else:
self.timeButtonThrower = None
# 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)