Fix T48259: Vertex painting doesn't trigger refresh of cycles rendered viewport

This commit is contained in:
Sergey Sharybin 2016-04-26 11:15:28 +02:00
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
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}