diff options
author | Luca Rood <dev@lucarood.com> | 2017-05-04 20:59:27 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-05-04 21:05:59 +0300 |
commit | 3103b819aa530da29e9853cb67e3f0b77d349d4e (patch) | |
tree | 598272bccd325ad6ec70e5b919c9cd53eee9f5ec /source/blender/editors/sculpt_paint | |
parent | b5b9b2d04db4b3cf08d219d00e5f7d1d82725ad1 (diff) |
Vertex paint with draw manager
Reviewers: fclem
Subscribers: campbellbarton, dfelinto
Differential Revision: https://developer.blender.org/D2658
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
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 de40a666145..368d7e17d99 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -2382,7 +2382,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P /* also needed for "View Selected" on last stroke */ paint_last_stroke_update(scene, vc->ar, mval); - BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_WEIGHT); + BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_PAINT); DAG_id_tag_update(ob->data, 0); ED_region_tag_redraw(vc->ar); @@ -2861,6 +2861,8 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P /* also needed for "View Selected" on last stroke */ paint_last_stroke_update(scene, vc->ar, mval); + BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_PAINT); + ED_region_tag_redraw(vc->ar); if (vpd->use_fast_update == false) { |