[Bf-blender-cvs] [d13fb7a7c4d] blender2.8: Sculpt: Fix disappearing object on undo

Sergey Sharybin noreply at git.blender.org
Thu Jul 5 12:32:10 CEST 2018


Commit: d13fb7a7c4dafcc2a2f239c8a878c64c8c294dbf
Author: Sergey Sharybin
Date:   Thu Jul 5 12:31:17 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd13fb7a7c4dafcc2a2f239c8a878c64c8c294dbf

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.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_undo.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list