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:
Jacques Lucke
2023-11-17 13:07:29 +01:00
parent e581dde40f
commit e62179ce04

View File

@@ -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++) {