Fix sculpt mode undo (COW update needed)

This commit is contained in:
Campbell Barton 2018-06-07 15:15:54 +02:00
parent a3f520170c
commit d9d3e7778c
1 changed files with 2 additions and 0 deletions

View File

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