From 987c41f50a40cd2ec7cfc9434b2001944ba33042 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 22 May 2008 01:42:10 +0000 Subject: [PATCH] disable creation stack recording by default --- direct/src/gui/DirectGuiBase.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/direct/src/gui/DirectGuiBase.py b/direct/src/gui/DirectGuiBase.py index 081517b5fe..2f2fb96769 100644 --- a/direct/src/gui/DirectGuiBase.py +++ b/direct/src/gui/DirectGuiBase.py @@ -651,10 +651,7 @@ def toggleGuiGridSnap(): def setGuiGridSpacing(spacing): DirectGuiWidget.gridSpacing = spacing -# this should trigger off of __dev__, but it's not available at this point. -# __debug__ works because the production client is not __debug__ and the -# production AI doesn't create any GUI. -if config.GetBool('record-gui-creation-stack', __debug__): +if config.GetBool('record-gui-creation-stack', 0): # this will help track down the code that created DirectGui objects # call obj.printCreationStackTrace() to figure out what code created it DirectGuiBase = recordCreationStackStr(DirectGuiBase)