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)