mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
showbase: disable track-gui-items by default, remove want-e3-hacks
This commit is contained in:
parent
e6c2d3b609
commit
aa90b7b0c0
@ -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:
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user