Fix sculpt mode undo (COW update needed)
authorCampbell Barton <ideasman42@gmail.com>
Thu, 7 Jun 2018 13:15:54 +0000 (15:15 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 7 Jun 2018 13:15:54 +0000 (15:15 +0200)
source/blender/editors/sculpt_paint/sculpt_undo.c

index 75bfa4fe344881e511914720a5e2d1de1321d329..bc51606f3e5e340f95998b35d511be459d918465 100644 (file)
@@ -493,6 +493,8 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb)
                }
        }
 
+       DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
+
        BKE_sculpt_update_mesh_elements(depsgraph, scene, sd, ob, 0, need_mask);
 
        /* call _after_ sculpt_update_mesh_elements() which may update 'ob->derivedFinal' */