Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / object_deform.c
index 4f92509827f65ace3a22d12a354617afb15c3dd2..c298427b38d121f292bb7be15cf0cb867e459e82 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);
 }
 
 /**