diff options
Diffstat (limited to 'source/blender/blenkernel/intern/editmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/editmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/editmesh.c b/source/blender/blenkernel/intern/editmesh.c index a925dfa4da8..e178b0c42d0 100644 --- a/source/blender/blenkernel/intern/editmesh.c +++ b/source/blender/blenkernel/intern/editmesh.c @@ -212,12 +212,12 @@ void BKE_editmesh_free_derived_caches(BMEditMesh *em) { if (em->mesh_eval_cage) { Mesh *me = em->mesh_eval_cage; - MEM_SAFE_FREE(me->edit_mesh); + me->edit_mesh = NULL; BKE_id_free(NULL, me); } if (em->mesh_eval_final && em->mesh_eval_final != em->mesh_eval_cage) { Mesh *me = em->mesh_eval_final; - MEM_SAFE_FREE(me->edit_mesh); + me->edit_mesh = NULL; BKE_id_free(NULL, me); } em->mesh_eval_cage = em->mesh_eval_final = NULL; |