mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
remove support for old panda
This commit is contained in:
parent
a3f8c0fb5d
commit
7f3800559d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user