[Bf-blender-cvs] [d9d3e7778c9] blender2.8: Fix sculpt mode undo (COW update needed)

Campbell Barton noreply at git.blender.org
Thu Jun 7 15:16:17 CEST 2018


Commit: d9d3e7778c9d0cb495620e1f5b483038f0193d09
Author: Campbell Barton
Date:   Thu Jun 7 15:15:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd9d3e7778c9d0cb495620e1f5b483038f0193d09

Fix sculpt mode undo (COW update needed)

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

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 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' */



More information about the Bf-blender-cvs mailing list