mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
break ParamObj garbage cycle
This commit is contained in:
parent
2443e6c76a
commit
b3f7067483
@ -1301,8 +1301,8 @@ class ParamObj:
|
|||||||
# install a setter stub that will a) call the real setter and
|
# install a setter stub that will a) call the real setter and
|
||||||
# then the applier, or b) call the setter and queue the
|
# then the applier, or b) call the setter and queue the
|
||||||
# applier, depending on whether our params are locked
|
# applier, depending on whether our params are locked
|
||||||
self.__dict__[setterName] = Functor(setterStub, param,
|
setattr(self, setterName, new.instancemethod(
|
||||||
setterFunc, self)
|
Functor(setterStub, param, setterFunc), self, self.__class__))
|
||||||
|
|
||||||
if params is not None:
|
if params is not None:
|
||||||
params.applyTo(self)
|
params.applyTo(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user