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:
-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)