diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-10 07:18:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-10 07:22:47 +0300 |
commit | 606ac3eb7f4c93466eb666fe0ae9b6494a4e1bb6 (patch) | |
tree | 42f42aaf5e7d93ef05fb42959fcc64335105dfb6 /source/blender | |
parent | 9751d7188ed7c9f7c0c68ff05a7976d50bd0b387 (diff) |
Fix modifier cage option being overwritten
Editmesh modifier calculation behaved as if eModifierMode_OnCage
was enabled for all modifiers.
Remove assignment after all modifiers are calculated.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 21eff8d39ee..e04a5bcf0a3 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -2128,13 +2128,6 @@ static void editbmesh_calc_modifiers( } else { /* this is just a copy of the editmesh, no need to calc normals */ - Mesh *me_orig = ob->data; - if (me_orig->id.tag & LIB_TAG_COPIED_ON_WRITE) { - BKE_mesh_runtime_ensure_edit_data(me_orig); - if (me_orig->runtime.edit_data->vertexCos != NULL) - MEM_freeN((void *)me_orig->runtime.edit_data->vertexCos); - me_orig->runtime.edit_data->vertexCos = MEM_dupallocN(deformedVerts); - } *r_final = BKE_mesh_from_editmesh_with_coords_thin_wrap(em, dataMask, deformedVerts); deformedVerts = NULL; |