From b3f7067483872a6f01b14d76f05d4c3c49da3eb7 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 10 Apr 2007 02:32:48 +0000 Subject: [PATCH] break ParamObj garbage cycle --- direct/src/showbase/PythonUtil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 0e9754b7ea..50d46213f7 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -1301,8 +1301,8 @@ class ParamObj: # install a setter stub that will a) call the real setter and # then the applier, or b) call the setter and queue the # applier, depending on whether our params are locked - self.__dict__[setterName] = Functor(setterStub, param, - setterFunc, self) + setattr(self, setterName, new.instancemethod( + Functor(setterStub, param, setterFunc), self, self.__class__)) if params is not None: params.applyTo(self)