Browse Source

make gcDebugOn look at DEBUG_SAVEALL specifically

Darren Ranalli 19 years ago
parent
commit
1ace31262d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/PythonUtil.py

+ 1 - 1
direct/src/showbase/PythonUtil.py

@@ -1984,7 +1984,7 @@ def printListEnum(l):
 
 def gcDebugOn():
     import gc
-    return (gc.get_debug() & gc.DEBUG_LEAK) == gc.DEBUG_LEAK
+    return (gc.get_debug() & gc.DEBUG_SAVEALL) == gc.DEBUG_SAVEALL
 
 import __builtin__
 __builtin__.Functor = Functor