From d13fb7a7c4dafcc2a2f239c8a878c64c8c294dbf Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 5 Jul 2018 12:31:17 +0200 Subject: 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. --- source/blender/editors/sculpt_paint/sculpt_undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3