Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-07 16:15:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-07 16:15:54 +0300
commitd9d3e7778c9d0cb495620e1f5b483038f0193d09 (patch)
treeccdbc7f0921e839c1e63152f6a90e6ffe32f3473 /source/blender/editors/sculpt_paint
parenta3f520170c9b43b195da085d20ca09866d8b2554 (diff)
Fix sculpt mode undo (COW update needed)
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_undo.c2
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' */