diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2006-07-09 18:49:53 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2006-07-09 18:49:53 +0400 |
commit | 6bd0091a084e68cd2f28b61eb7d77a13f27d5726 (patch) | |
tree | 767c2f9d5280d1b41acf0e39d06b1d97ba2b683f /source/blender | |
parent | a06c12277219d7877df82825962091ac08c50dcc (diff) |
BPython:
-local matrices again, previous commit had matrix multiplication with
inverted order.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 0d41b6c9b76..decc28029e3 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -1449,7 +1449,7 @@ static PyObject *Object_getMatrix( BPy_Object * self, PyObject * args ) float invmat[4][4]; /* for inverse of parent's matrix */ Mat4Invert(invmat, self->object->parent->obmat ); - Mat4MulMat4(matrix, invmat, self->object->obmat); + Mat4MulMat4(matrix, self->object->obmat, invmat); return newMatrixObject((float*)matrix,4,4,Py_NEW); } else { /* no parent, so return world space matrix */ |