Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / object_deform.c
index d387e30050c9c267cbeec8d71038a5961be13cf6..754434eaef633a35ceada5b7325f3fda3caca935 100644 (file)
@@ -51,6 +51,7 @@
 #include "BKE_editmesh.h"
 #include "BKE_object_deform.h"  /* own include */
 #include "BKE_object.h"
+#include "BKE_mesh.h"
 #include "BKE_modifier.h"
 
 /** \name Misc helpers
@@ -405,6 +406,8 @@ void BKE_object_defgroup_remove(Object *ob, bDeformGroup *defgroup)
                object_defgroup_remove_edit_mode(ob, defgroup);
        else
                object_defgroup_remove_object_mode(ob, defgroup);
+
+       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
 }
 
 /**