moved some Task params to class variables

This commit is contained in:
Joe Shochet 2004-07-26 17:17:10 +00:00
parent f58a790703
commit 3cbb4819a4

View File

@ -79,10 +79,9 @@ class ShowBase(DirectObject.DirectObject):
# the program by closing the main window. # the program by closing the main window.
self.exitFunc = None self.exitFunc = None
taskMgr.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0) Task.TaskManager.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0)
taskMgr.extendedExceptions = self.config.GetBool('extended-exceptions', 0) Task.TaskManager.extendedExceptions = self.config.GetBool('extended-exceptions', 0)
Task.TaskManager.pStatsTasks = self.config.GetBool('pstats-tasks', 0)
taskMgr.pStatsTasks = self.config.GetBool('pstats-tasks', 0)
# Set up the TaskManager to reset the PStats clock back # Set up the TaskManager to reset the PStats clock back
# whenever we resume from a pause. This callback function is # whenever we resume from a pause. This callback function is