Fix T58975: "@=" operator silently fails

D4083 by @artfunkel
This commit is contained in:
Campbell Barton 2018-12-16 09:46:34 +11:00
parent 3e311fdcd1
commit 4b545d1bbf
Notes: blender-bot 2023-02-14 09:03:55 +01:00
Referenced by issue #60137, EEVEE crashes (but CYCLES does not)  when attempting to run attached file
Referenced by issue #60138, EEVEE crashes (but CYCLES does not)  when attempting to run attached file
Referenced by issue #59680, Impossible to have two different object interaction modes in a splited window. Blender 2.8
Referenced by issue #59653, Blender 2.8 Beta for Linux: Executing blender-softwaregl in Terminal results in Segmentation Fault
Referenced by issue #59509, Particle rotation bug
Referenced by issue #59452, Different curve surface drawing in object- vs. edit-mode
Referenced by issue #59437, After applying any modifier to object and change to "Edit Mode" Blender crash
Referenced by issue #58975, 2.80 Python API: "@=" operator succeeds but has no effect
1 changed files with 1 additions and 1 deletions

View File

@ -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,