diff --git a/direct/src/showbase/GarbageReport.py b/direct/src/showbase/GarbageReport.py index e1452be320..9c285bb4a0 100755 --- a/direct/src/showbase/GarbageReport.py +++ b/direct/src/showbase/GarbageReport.py @@ -535,7 +535,7 @@ class _CFGLGlobals: def checkForGarbageLeaks(): gc.collect() numGarbage = len(gc.garbage) - if (numGarbage > 0 and (not config.GetBool('disable-garbage-logging', 1))): + if (numGarbage > 0 and config.GetBool('auto-garbage-logging', 0)): if (numGarbage != _CFGLGlobals.LastNumGarbage): print gr = GarbageReport('found garbage', threaded=False, collect=False) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index c7d06bb25a..32acacfd55 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -2401,7 +2401,7 @@ class ShowBase(DirectObject.DirectObject): if not properties.getOpen(): # If the user closes the main window, we should exit. self.notify.info("User closed main window.") - if __dev__ and (not config.GetBool('disable-garbage-logging', 1)): + if __dev__ and config.GetBool('auto-garbage-logging', 0): GarbageReport.b_checkForGarbageLeaks() self.userExit() @@ -2409,7 +2409,7 @@ class ShowBase(DirectObject.DirectObject): self.mainWinForeground = 1 elif not properties.getForeground() and self.mainWinForeground: self.mainWinForeground = 0 - if __dev__ and (not config.GetBool('disable-garbage-logging', 1)): + if __dev__ and config.GetBool('auto-garbage-logging', 0): GarbageReport.b_checkForGarbageLeaks() if properties.getMinimized() and not self.mainWinMinimized: