diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-16 01:46:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-16 01:49:00 +0300 |
commit | 4b545d1bbf4363675ecdce4e886377b4dd848442 (patch) | |
tree | 77cc02a6ba4938be2ffab4841e55eca041afdca4 /source/blender/python | |
parent | 3e311fdcd17602ca74a332fda24ee43f89e7ecd2 (diff) |
Fix T58975: "@=" operator silently fails
D4083 by @artfunkel
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index d9319f1ae7c..76921b69d1a 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -2550,7 +2550,7 @@ static PyObject *Matrix_imatmul(PyObject *m1, PyObject *m2) } /* copy matrix back */ - memcpy(mat1->matrix, mat, mat1->num_row * mat1->num_col); + memcpy(mat1->matrix, mat, (mat1->num_row * mat1->num_col) * sizeof(float)); } else { PyErr_Format(PyExc_TypeError, |