[Bf-blender-cvs] [2942a49] master: Fix T48259: Vertex painting doesn't trigger refresh of cycles rendered viewport

Sergey Sharybin noreply at git.blender.org
Tue Apr 26 11:24:27 CEST 2016


Commit: 2942a492f4cabf98781c6c2e1b2d1ca5af640743
Author: Sergey Sharybin
Date:   Tue Apr 26 11:15:28 2016 +0200
Branches: master
https://developer.blender.org/rB2942a492f4cabf98781c6c2e1b2d1ca5af640743

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

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 4d3712c..15ab4ca 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -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);
 }




More information about the Bf-blender-cvs mailing list