Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-04-26 12:15:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-26 12:15:28 +0300
commit2942a492f4cabf98781c6c2e1b2d1ca5af640743 (patch)
tree7802f8394e7b330e49bcceefdbfdc0b4e00a69ee /source/blender/editors/sculpt_paint
parent0f8290ad0e89488475b2cfa368c28c28a938cf3a (diff)
Fix T48259: Vertex painting doesn't trigger refresh of cycles rendered viewport
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 4d3712c6e3e..15ab4ca04a7 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);
}