diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-06-19 21:29:25 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-06-19 21:29:25 +0300 |
commit | d30f72dfd8acdac26e7888dbb2f4628f6baac707 (patch) | |
tree | 0e0116f538df9d67fd47c1fa9e4282b0596189b2 | |
parent | da83f70754b6e5eb6d96b94b0d1d554bdb9120fd (diff) |
Fix sculpt not updating on undo with EEVEE enabled
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 75a2af4526f..8c8d4487ada 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -459,6 +459,7 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb) { Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); + View3D *v3d = CTX_wm_view3d(C); Object *ob = OBACT(view_layer); Depsgraph *depsgraph = CTX_data_depsgraph(C); SculptSession *ss = ob->sculpt; @@ -560,7 +561,7 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb) } } - tag_update |= ((Mesh *)ob->data)->id.us > 1; + tag_update |= ((Mesh *)ob->data)->id.us > 1 || !BKE_sculptsession_use_pbvh_draw(ob, v3d); if (ss->kb || ss->modifiers_active) { Mesh *mesh = ob->data; |