Fix T48259: Vertex painting doesn't trigger refresh of cycles rendered viewport
This commit is contained in:
parent
0f8290ad0e
commit
2942a492f4
Notes:
blender-bot
2023-02-14 07:57:15 +01:00
Referenced by issue #48259, Vertex painting doesn't trigger refresh of cycles rendered viewport
|
@ -2836,7 +2836,8 @@ static void vpaint_stroke_done(const bContext *C, struct PaintStroke *stroke)
|
|||
struct VPaintData *vpd = paint_stroke_mode_data(stroke);
|
||||
ViewContext *vc = &vpd->vc;
|
||||
Object *ob = vc->obact;
|
||||
|
||||
Mesh *me = ob->data;
|
||||
|
||||
ED_vpaint_proj_handle_free(vpd->vp_handle);
|
||||
MEM_freeN(vpd->indexar);
|
||||
|
||||
|
@ -2847,6 +2848,7 @@ static void vpaint_stroke_done(const bContext *C, struct PaintStroke *stroke)
|
|||
MEM_freeN(vpd->mlooptag);
|
||||
|
||||
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
|
||||
DAG_id_tag_update(&me->id, 0);
|
||||
|
||||
MEM_freeN(vpd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue