From 5d256052e69aa42473d95790f44be045fc244ad9 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 31 Dec 2008 01:53:01 +0000 Subject: [PATCH] added record-functor-creation-stacks config --- direct/src/showbase/PythonUtil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 859a88069b..b1ac0225f0 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -3626,7 +3626,8 @@ class HierarchyException(Exception): # __dev__ is not defined at import time, call this after it's defined def recordFunctorCreationStacks(): global Functor - if __dev__: + from pandac.PandaModules import ConfigConfigureGetConfigConfigShowbase as config + if __dev__ and config.GetBool('record-functor-creation-stacks', 1): if not hasattr(Functor, '_functorCreationStacksRecorded'): Functor = recordCreationStackStr(Functor) Functor._functorCreationStacksRecorded = True