Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2005-05-22 00:05:28 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-05-22 00:05:28 +0400
commit21d07f7ea3af5da871dc563cd09825c0b19122c5 (patch)
treeb932de6738237557edd8a95543698fc2a0ac55fe
parent73c162dfef74ee2eaef2f86380175ba5c4e4fa55 (diff)
Matrix_Determinant() was returning its input arg rather than
the determinant. bugfix via LetterRip.
-rw-r--r--source/blender/python/api2_2x/matrix.c2
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)