Fix sculpt not updating on undo with EEVEE enabled
This commit is contained in:
parent
da83f70754
commit
d30f72dfd8
Notes:
blender-bot
2023-05-31 04:43:10 +02:00
Referenced by issue #66394, Blender crash on edit path with solidify modifier Referenced by issue #65981, Selecting/Moving Beveled, Modifier'd Curve Vertex -> Crash Referenced by issue #65974, Workbench transparency rendering broken Referenced by issue #65976, Incorrect button/icon state for viewport render mode when switching from EeeVee to Workbench Referenced by issue #65963, Tests: fix script_load_keymap hierarchy test
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue