diff options
Diffstat (limited to 'source/blender/python/api2_2x/matrix.c')
-rw-r--r-- | source/blender/python/api2_2x/matrix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/matrix.c b/source/blender/python/api2_2x/matrix.c index ef137731a78..33dc4da49b6 100644 --- a/source/blender/python/api2_2x/matrix.c +++ b/source/blender/python/api2_2x/matrix.c @@ -754,13 +754,13 @@ PyObject *Matrix_sub( PyObject * m1, PyObject * m2 ) PyObject *Matrix_mul( PyObject * m1, PyObject * m2 ) { - float *mat = NULL; - PyObject *retval;; - int matSizeV, rowSizeV, colSizeV, rowSizeW, colSizeW, matSizeW, x, y, - z; - float dot = 0; + PyObject *retval; + int matSizeV, rowSizeV, colSizeV, rowSizeW, colSizeW, matSizeW, x, y,z; MatrixObject *matV; MatrixObject *matW; + float *mat = NULL; + float dot = 0; + if( ( !Matrix_CheckPyObject( m1 ) ) || ( !Matrix_CheckPyObject( m2 ) ) ) |