Fix exception when creating intervals before ShowBase is started

This commit is contained in:
rdb 2016-09-30 00:21:12 +02:00
parent 231ca47edd
commit f363088cb2
3 changed files with 5 additions and 5 deletions

View File

@ -131,10 +131,6 @@ class ShowBase(DirectObject.DirectObject):
## just before Python is about to shut down.
self.finalExitCallbacks = []
Task.TaskManager.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0)
Task.TaskManager.extendedExceptions = self.config.GetBool('extended-exceptions', 0)
Task.TaskManager.pStatsTasks = self.config.GetBool('pstats-tasks', 0)
# Set up the TaskManager to reset the PStats clock back
# whenever we resume from a pause. This callback function is
# a little hacky, but we can't call it directly from within

View File

@ -102,7 +102,10 @@ Task.DtoolClassDict['loop'] = staticmethod(loop)
class TaskManager:
notify = directNotify.newCategory("TaskManager")
extendedExceptions = False
taskTimerVerbose = ConfigVariableBool('task-timer-verbose', False)
extendedExceptions = ConfigVariableBool('extended-exceptions', False)
pStatsTasks = ConfigVariableBool('pstats-tasks', False)
MaxEpochSpeed = 1.0/30.0
def __init__(self):

View File

@ -40,6 +40,7 @@ This issue fixes several bugs that were still found in 1.9.2.
* Fix inoperative -tbn/-tbnall/-tbnauto options in egg-optchar
* Fix tinydisplay texture errors on shutdown
* Fix mipmap filtering issues in tinydisplay renderer
* Fix exception when creating intervals before ShowBase is started
------------------------ RELEASE 1.9.2 ------------------------