mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
*** empty log message ***
This commit is contained in:
parent
92ca831ca2
commit
043472cfb5
Binary file not shown.
@ -295,7 +295,7 @@ def adjust(command = None, parent = None, **kw):
|
||||
base.wantDIRECT = 1
|
||||
base.wantTk = 1
|
||||
import TkGlobal
|
||||
from Tkinter import *
|
||||
import Tkinter
|
||||
import EntryScale
|
||||
import Pmw
|
||||
# Create toplevel if needed
|
||||
|
@ -52,6 +52,8 @@ class ShowBase:
|
||||
self.wantStats = self.config.GetBool('want-stats', 0)
|
||||
|
||||
taskMgr.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0)
|
||||
taskMgr.extendedExceptions = self.config.GetBool('extended-exceptions', 0)
|
||||
|
||||
taskMgr.pStatsTasks = self.config.GetBool('pstats-tasks', 0)
|
||||
|
||||
# Set up the TaskManager to reset the PStats clock back
|
||||
|
@ -312,6 +312,7 @@ class TaskManager:
|
||||
if (TaskManager.notify == None):
|
||||
TaskManager.notify = directNotify.newCategory("TaskManager")
|
||||
self.taskTimerVerbose = 0
|
||||
self.extendedExceptions = 0
|
||||
self.pStatsTasks = 0
|
||||
self.resumeFunc = None
|
||||
self.fVerbose = 0
|
||||
@ -501,9 +502,11 @@ class TaskManager:
|
||||
except KeyboardInterrupt:
|
||||
self.stop()
|
||||
except:
|
||||
# self.stop()
|
||||
# print_exc_plus()
|
||||
raise
|
||||
if self.extendedExceptions:
|
||||
self.stop()
|
||||
print_exc_plus()
|
||||
else:
|
||||
raise
|
||||
|
||||
def stop(self):
|
||||
# Set a flag so we will stop before beginning next frame
|
||||
|
Loading…
x
Reference in New Issue
Block a user