Commit: 4b545d1bbf4363675ecdce4e886377b4dd848442
Author: Campbell Barton
Date: Sun Dec 16 09:46:34 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB4b545d1bbf4363675ecdce4e886377b4dd848442
Fix T58975: "@=" operator silently fails
D4083 by @artfunkel
===================================================================
M source/blender/python/mathutils/mathutils_Matrix.c
===================================================================
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,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs