forked from bartvdbraak/blender
Python API
---------- Incorrect row and column values were passed to newMatrixObject() by Matrix_new() when the argument to Matrix() was a matrix.
This commit is contained in:
parent
caa27f09fd
commit
5133f75779
@ -165,6 +165,8 @@ static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
memcpy(matrix, mat->contigPtr, sizeof(float) * mat->rowSize * mat->colSize);
|
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?)
|
}else{ //2-4 arguments (all seqs? all same size?)
|
||||||
for(i =0; i < argSize; i++){
|
for(i =0; i < argSize; i++){
|
||||||
|
Loading…
Reference in New Issue
Block a user