diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-06 13:39:49 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-06 13:42:01 +0300 |
commit | 528cdf9b504d9d42dadc8a70464026101d29803f (patch) | |
tree | fb155fb410c285fab3c516cccc60ddbcd0c3cb96 /source/blender/editors/sculpt_paint | |
parent | e3324c3a8ef68b2d4c866b799fe94e629731a9ba (diff) |
Fix update issue in VPaint mode.
Need to flush the changes through DEG CoW, otherwise drawing code would
not see them in some cases...
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index a6b5ae1af29..52c096b712e 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -3143,6 +3143,10 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P * avoid this if we can! */ DEG_id_tag_update(ob->data, 0); } + else { + /* Flush changes through DEG. */ + DEG_id_tag_update(ob->data, DEG_TAG_COPY_ON_WRITE); + } } static void vpaint_stroke_done(const bContext *C, struct PaintStroke *stroke) |