Fix T58310: Crash when removing multires modifier from sculpt object
[blender.git] / source / blender / blenkernel / intern / object.c
index 3e2e890f54273694ecfa48c13316d4687fa2e0a4..694dae77bcdfdb9c674012df82936da93e6c9321 100644 (file)
@@ -425,6 +425,9 @@ static void object_update_from_subsurf_ccg(Object *object)
        Mesh *mesh_cow = object->runtime.mesh_orig;
        copy_ccg_data(mesh_cow, mesh_orig, CD_MDISPS);
        copy_ccg_data(mesh_cow, mesh_orig, CD_GRID_PAINT_MASK);
+       /* Everything is now up-to-date. */
+       subdiv_ccg->dirty.coords = false;
+       subdiv_ccg->dirty.hidden = false;
 }
 
 /* free data derived from mesh, called when mesh changes or is freed */