Browse Source

showbase: disable track-gui-items by default, remove want-e3-hacks

rdb 7 years ago
parent
commit
aa90b7b0c0
2 changed files with 5 additions and 6 deletions
  1. 1 1
      direct/src/gui/DirectGuiBase.py
  2. 4 5
      direct/src/showbase/ShowBase.py

+ 1 - 1
direct/src/gui/DirectGuiBase.py

@@ -729,7 +729,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
             guiObjectCollector.addLevel(1)
             guiObjectCollector.flushLevel()
             # track gui items by guiId for tracking down leaks
-            if ShowBase.config.GetBool('track-gui-items', True):
+            if ShowBase.config.GetBool('track-gui-items', False):
                 if not hasattr(ShowBase, 'guiItems'):
                     ShowBase.guiItems = {}
                 if self.guiId in ShowBase.guiItems:

+ 4 - 5
direct/src/showbase/ShowBase.py

@@ -397,11 +397,10 @@ class ShowBase(DirectObject.DirectObject):
 
         self.createBaseAudioManagers()
 
-        if self.__dev__ or self.config.GetBool('want-e3-hacks', False):
-            if self.config.GetBool('track-gui-items', True):
-                # dict of guiId to gui item, for tracking down leaks
-                if not hasattr(ShowBase, 'guiItems'):
-                    ShowBase.guiItems = {}
+        if self.__dev__ and self.config.GetBool('track-gui-items', False):
+            # dict of guiId to gui item, for tracking down leaks
+            if not hasattr(ShowBase, 'guiItems'):
+                ShowBase.guiItems = {}
 
         # optionally restore the default gui sounds from 1.7.2 and earlier
         if ConfigVariableBool('orig-gui-sounds', False).getValue():