diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-02 16:47:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-02 16:48:17 +0300 |
commit | 9e477bdf63dc21d3ae5845bed303abb5a2b958e6 (patch) | |
tree | 26916d59361fea297c38e087985ac807cd4ad397 /source/blender/blenkernel/intern/DerivedMesh.c | |
parent | 5659d8bc0aa334aee20f29548e048f3002f1cff6 (diff) |
Mesh: move runtime members to own struct
Diffstat (limited to 'source/blender/blenkernel/intern/DerivedMesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index fa0c1da5f63..dacc0c35e0f 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -2488,7 +2488,7 @@ static void editbmesh_calc_modifiers( struct Mesh *mesh = ob->data; if (mesh->id.tag & LIB_TAG_COPY_ON_WRITE) { BKE_mesh_ensure_edit_data(mesh); - mesh->emd->vertexCos = MEM_dupallocN(deformedVerts); + mesh->runtime.edit_data->vertexCos = MEM_dupallocN(deformedVerts); } *r_cage = getEditDerivedBMesh( em, ob, mask, @@ -2530,9 +2530,9 @@ static void editbmesh_calc_modifiers( struct Mesh *mesh = ob->data; if (mesh->id.tag & LIB_TAG_COPY_ON_WRITE) { BKE_mesh_ensure_edit_data(mesh); - if (mesh->emd->vertexCos != NULL) - MEM_freeN((void *)mesh->emd->vertexCos); - mesh->emd->vertexCos = MEM_dupallocN(deformedVerts); + if (mesh->runtime.edit_data->vertexCos != NULL) + MEM_freeN((void *)mesh->runtime.edit_data->vertexCos); + mesh->runtime.edit_data->vertexCos = MEM_dupallocN(deformedVerts); } *r_final = getEditDerivedBMesh(em, ob, dataMask, deformedVerts); deformedVerts = NULL; |