diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 18:51:59 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 18:51:59 -0400 |
commit | 4781d3a2a7ec463ee712c8de6362d8b6c872c31b (patch) | |
tree | 7bc2b7c8605f25e300a9be3d85230173d35a5fa9 /libdimension-python/dimension.pyx | |
parent | 57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d (diff) | |
download | dimension-4781d3a2a7ec463ee712c8de6362d8b6c872c31b.tar.xz |
interior: Use pool.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r-- | libdimension-python/dimension.pyx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index da45f32..7466b9e 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -1045,12 +1045,9 @@ cdef class Interior: Keyword arguments: ior -- index of reflection """ - self._interior = dmnsn_new_interior() + self._interior = dmnsn_new_interior(_get_pool()) self._interior.ior = ior - def __dealloc__(self): - dmnsn_delete_interior(self._interior) - property ior: """Index of reflection.""" def __get__(self): @@ -1062,7 +1059,6 @@ cdef Interior _Interior(dmnsn_interior *interior): """Wrap an Interior object around a dmnsn_interior *.""" cdef Interior self = Interior.__new__(Interior) self._interior = interior - DMNSN_INCREF(self._interior) return self ########### @@ -1134,7 +1130,6 @@ cdef class Object(_Transformable): return _Interior(self._object.interior) def __set__(self, Interior interior not None): self._object.interior = interior._interior - DMNSN_INCREF(self._object.interior) def transform(self, Matrix trans not None): """Transform an object.""" @@ -1561,9 +1556,7 @@ cdef class Scene: def __get__(self): return _Interior(self._scene.default_interior) def __set__(self, Interior interior not None): - dmnsn_delete_interior(self._scene.default_interior) self._scene.default_interior = interior._interior - DMNSN_INCREF(self._scene.default_interior) property background: """The background pigment of the scene (default: Black).""" |