Fix T100578: Surface Deform modifier displays wrong in editmode
This was the case when the "Show in Editmode" option was used and a vertexgroup affected the areas. Probably an oversight in {rBdeaff945d0b9}?, seems like deforming modifiers always need to call `BKE_mesh_wrapper_ensure_mdata` in `deformVertsEM` when a vertex group is used. Maniphest Tasks: T100578 Differential Revision: https://developer.blender.org/D15756
This commit is contained in:
parent
c76d7f7bde
commit
d269ad3535
Notes:
blender-bot
2023-02-14 03:03:03 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #100578, Regression: Surface Deform Modifier does not display correctly in Edit Mode while a Vertex Group is assigned to the Modifier.
|
@ -1603,6 +1603,11 @@ static void deformVertsEM(ModifierData *md,
|
|||
mesh_src = MOD_deform_mesh_eval_get(ctx->object, em, mesh, NULL, verts_num, false, false);
|
||||
}
|
||||
|
||||
/* TODO(@campbellbarton): use edit-mode data only (remove this line). */
|
||||
if (mesh_src != NULL) {
|
||||
BKE_mesh_wrapper_ensure_mdata(mesh_src);
|
||||
}
|
||||
|
||||
surfacedeformModifier_do(md, ctx, vertexCos, verts_num, ctx->object, mesh_src);
|
||||
|
||||
if (!ELEM(mesh_src, NULL, mesh)) {
|
||||
|
|
Loading…
Reference in New Issue