Skip to content

Commit f363088

Browse files
committed
Fix exception when creating intervals before ShowBase is started
1 parent 231ca47 commit f363088

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

direct/src/showbase/ShowBase.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ def __init__(self, fStartDirect = True, windowType = None):
131131
## just before Python is about to shut down.
132132
self.finalExitCallbacks = []
133133

134-
Task.TaskManager.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0)
135-
Task.TaskManager.extendedExceptions = self.config.GetBool('extended-exceptions', 0)
136-
Task.TaskManager.pStatsTasks = self.config.GetBool('pstats-tasks', 0)
137-
138134
# Set up the TaskManager to reset the PStats clock back
139135
# whenever we resume from a pause. This callback function is
140136
# a little hacky, but we can't call it directly from within

direct/src/task/Task.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ def loop(*taskList):
102102
class TaskManager:
103103
notify = directNotify.newCategory("TaskManager")
104104

105-
extendedExceptions = False
105+
taskTimerVerbose = ConfigVariableBool('task-timer-verbose', False)
106+
extendedExceptions = ConfigVariableBool('extended-exceptions', False)
107+
pStatsTasks = ConfigVariableBool('pstats-tasks', False)
108+
106109
MaxEpochSpeed = 1.0/30.0
107110

108111
def __init__(self):

doc/ReleaseNotes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ This issue fixes several bugs that were still found in 1.9.2.
4040
* Fix inoperative -tbn/-tbnall/-tbnauto options in egg-optchar
4141
* Fix tinydisplay texture errors on shutdown
4242
* Fix mipmap filtering issues in tinydisplay renderer
43+
* Fix exception when creating intervals before ShowBase is started
4344

4445
------------------------ RELEASE 1.9.2 ------------------------
4546

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy