Matrix_Determinant() was returning its input arg rather than

the determinant.  bugfix via LetterRip.
This commit is contained in:
Stephen Swaney
2005-05-21 20:05:28 +00:00
parent 73c162dfef
commit 21d07f7ea3

View File

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