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

This commit is contained in:
rdb 2018-02-23 22:25:24 +01:00
parent e6c2d3b609
commit aa90b7b0c0
2 changed files with 5 additions and 6 deletions

View File

@ -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:

View File

@ -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():