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:
authorKen Hughes <khughes@pacific.edu>2009-10-23 04:44:18 +0400
committerKen Hughes <khughes@pacific.edu>2009-10-23 04:44:18 +0400
commit5133f75779eda6e9f8f8072dfee318b5877481fd (patch)
tree665a21afe6c895c40a93f8f7718c0ba664104837
parentcaa27f09fd19a5d37ae7775b8c80246bd7befe13 (diff)
Python API
---------- Incorrect row and column values were passed to newMatrixObject() by Matrix_new() when the argument to Matrix() was a matrix.
-rw-r--r--source/blender/python/generic/matrix.c2
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++){