mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 19:34:18 -04:00
made onScreenDebug available in non-__debug__
This commit is contained in:
parent
2089dc7fce
commit
f86c6e322c
@ -1183,7 +1183,6 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
def igLoop(self, state):
|
def igLoop(self, state):
|
||||||
if __debug__:
|
|
||||||
# We render the watch variables for the onScreenDebug as soon
|
# We render the watch variables for the onScreenDebug as soon
|
||||||
# as we reasonably can before the renderFrame().
|
# as we reasonably can before the renderFrame().
|
||||||
onScreenDebug.render()
|
onScreenDebug.render()
|
||||||
@ -1196,7 +1195,6 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
if self.clusterSyncFlag:
|
if self.clusterSyncFlag:
|
||||||
self.graphicsEngine.syncFrame()
|
self.graphicsEngine.syncFrame()
|
||||||
|
|
||||||
if __debug__:
|
|
||||||
# We clear the text buffer for the onScreenDebug as soon
|
# We clear the text buffer for the onScreenDebug as soon
|
||||||
# as we reasonably can after the renderFrame().
|
# as we reasonably can after the renderFrame().
|
||||||
onScreenDebug.clear()
|
onScreenDebug.clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user