diff options
author | Ken Hughes <khughes@pacific.edu> | 2009-10-23 04:44:18 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2009-10-23 04:44:18 +0400 |
commit | 5133f75779eda6e9f8f8072dfee318b5877481fd (patch) | |
tree | 665a21afe6c895c40a93f8f7718c0ba664104837 /source/blender/python/generic | |
parent | caa27f09fd19a5d37ae7775b8c80246bd7befe13 (diff) |
Python API
----------
Incorrect row and column values were passed to newMatrixObject() by
Matrix_new() when the argument to Matrix() was a matrix.
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/matrix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/matrix.c b/source/blender/python/generic/matrix.c index 5a49118b519..16ae3501b93 100644 --- a/source/blender/python/generic/matrix.c +++ b/source/blender/python/generic/matrix.c @@ -165,6 +165,8 @@ static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds) return NULL; memcpy(matrix, mat->contigPtr, sizeof(float) * mat->rowSize * mat->colSize); + argSize = mat->rowSize; + seqSize = mat->colSize; } }else{ //2-4 arguments (all seqs? all same size?) for(i =0; i < argSize; i++){ |