diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-07 16:15:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-07 16:15:54 +0300 |
commit | d9d3e7778c9d0cb495620e1f5b483038f0193d09 (patch) | |
tree | ccdbc7f0921e839c1e63152f6a90e6ffe32f3473 /source | |
parent | a3f520170c9b43b195da085d20ca09866d8b2554 (diff) |
Fix sculpt mode undo (COW update needed)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 75bfa4fe344..bc51606f3e5 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -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' */ |