diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-05 13:31:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-05 13:32:06 +0300 |
commit | d13fb7a7c4dafcc2a2f239c8a878c64c8c294dbf (patch) | |
tree | 82a11e50e4299845eb90888c69bdf8fd2b91f123 /source/blender/editors/sculpt_paint/sculpt_undo.c | |
parent | 397d088611b857e536bea08003eeba1b50678ec2 (diff) |
Sculpt: Fix disappearing object on undo
Tagging object for copy on write will ruin its PBVH.
Since sculpting is an "original" domain, we only need to
update draw batches to update.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 61f7c3bd0d9..b78d030407b 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -493,7 +493,7 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb) } } - DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE); + DEG_id_tag_update(&ob->id, DEG_TAG_SHADING_UPDATE); BKE_sculpt_update_mesh_elements(depsgraph, scene, sd, ob, false, need_mask); |