-local matrices again, previous commit had matrix multiplication with
inverted order.
This commit is contained in:
2006-07-09 14:49:53 +00:00
parent a06c122772
commit 6bd0091a08

View File

@@ -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 */