made onScreenDebug available in non-__debug__

This commit is contained in:
Darren Ranalli 2004-11-03 03:27:10 +00:00
parent 2089dc7fce
commit f86c6e322c

View File

@ -31,7 +31,7 @@ import DirectObject
import SfxPlayer
if __debug__:
from direct.directutil import DeltaProfiler
import OnScreenDebug
import OnScreenDebug
__builtins__["FADE_SORT_INDEX"] = 1000
__builtins__["NO_FADE_SORT_INDEX"] = 2000
@ -1183,7 +1183,6 @@ class ShowBase(DirectObject.DirectObject):
return Task.cont
def igLoop(self, state):
if __debug__:
# We render the watch variables for the onScreenDebug as soon
# as we reasonably can before the renderFrame().
onScreenDebug.render()
@ -1196,7 +1195,6 @@ class ShowBase(DirectObject.DirectObject):
if self.clusterSyncFlag:
self.graphicsEngine.syncFrame()
if __debug__:
# We clear the text buffer for the onScreenDebug as soon
# as we reasonably can after the renderFrame().
onScreenDebug.clear()