Fix: assert when running deform modifier tests in debug build
The issue was that `dco` had a different size than was expected because it was intentionally larger than strictly necessary.
This commit is contained in:
@@ -404,7 +404,7 @@ static void meshdeformModifier_do(ModifierData *md,
|
||||
zero_v3(dco[cage_verts_num]);
|
||||
|
||||
/* setup deformation data */
|
||||
BKE_mesh_wrapper_vert_coords_copy(cagemesh, dco);
|
||||
BKE_mesh_wrapper_vert_coords_copy(cagemesh, dco.as_mutable_span().take_front(cage_verts_num));
|
||||
bindcagecos = (float(*)[3])mmd->bindcagecos;
|
||||
|
||||
for (a = 0; a < cage_verts_num; a++) {
|
||||
|
||||
Reference in New Issue
Block a user