diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-05-22 00:05:28 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-05-22 00:05:28 +0400 |
commit | 21d07f7ea3af5da871dc563cd09825c0b19122c5 (patch) | |
tree | b932de6738237557edd8a95543698fc2a0ac55fe /source/blender/python/api2_2x/matrix.c | |
parent | 73c162dfef74ee2eaef2f86380175ba5c4e4fa55 (diff) |
Matrix_Determinant() was returning its input arg rather than
the determinant. bugfix via LetterRip.
Diffstat (limited to 'source/blender/python/api2_2x/matrix.c')
-rw-r--r-- | source/blender/python/api2_2x/matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/matrix.c b/source/blender/python/api2_2x/matrix.c index ff00c6da2b3..abea09b5f12 100644 --- a/source/blender/python/api2_2x/matrix.c +++ b/source/blender/python/api2_2x/matrix.c @@ -259,7 +259,7 @@ PyObject *Matrix_Determinant(MatrixObject * self) det = Det4x4((float (*)[4]) *self->matrix); } - return (PyObject*)self; + return PyFloat_FromDouble( (double) det ); } //---------------------------Matrix.transpose() ------------------ PyObject *Matrix_Transpose(MatrixObject * self) |