Преглед изворни кода

make gcDebugOn look at DEBUG_SAVEALL specifically

Darren Ranalli пре 19 година
родитељ
комит
1ace31262d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      direct/src/showbase/PythonUtil.py

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

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