Refactor: Simplify mesh edit mode modifier evaluation #108637

Merged
Hans Goudey merged 38 commits from HooglyBoogly/blender:cleanup-modifier-edit-mode-eval into main 2023-07-07 13:07:22 +02:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit d83c0c62ab - Show all commits

View File

@ -126,9 +126,6 @@ void BKE_mesh_wrapper_ensure_mdata(Mesh *me)
EditMeshData *edit_data = me->runtime->edit_data;
if (edit_data->vertexCos) {
/* Avoid freeing the edit data SoA vertex position array, since it
* may be referenced elsewhere and ensuring mesh data shouldn't free it. */
BKE_mesh_vert_coords_apply(me, edit_data->vertexCos);
CustomData_free_layer_named(&me->vdata, "position", me->totvert);
CustomData_add_layer_named_with_data(
&me->vdata, CD_PROP_FLOAT3, edit_data->vertexCos, me->totvert, "position", nullptr);