summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-12 19:49:12 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-12 22:09:49 -0400
commite77371bdbf6f9a14d0cf82b317ca6022f3b00bf7 (patch)
tree934b9ca1e4933457afc1695ce63985b3ebc291c8 /libdimension-python/dimension.pyx
parenteb5c280be7850872e4f94f1b914d35967d71fbce (diff)
downloaddimension-e77371bdbf6f9a14d0cf82b317ca6022f3b00bf7.tar.xz
Use dmnsn_object::intrinsic_trans from Python.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 556b90a..a1c8710 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -952,11 +952,10 @@ cdef class Object:
# Transform an object without affecting the texture
cdef _intrinsic_transform(self, Matrix trans):
- self._object.trans = dmnsn_matrix_mul(self._object.trans, trans._m)
- cdef Matrix inv = trans.inverse()
- if self._object.texture != NULL:
- self._object.texture.trans = dmnsn_matrix_mul(self._object.texture.trans,
- inv._m)
+ self._object.intrinsic_trans = dmnsn_matrix_mul(
+ trans._m,
+ self._object.intrinsic_trans
+ )
cdef class Triangle(Object):
"""A triangle."""