diff options
author | Luca Rood <dev@lucarood.com> | 2017-05-05 18:40:42 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-05-05 19:23:27 +0300 |
commit | 55395449582432fec91adc7bf8b7d97dc0e49137 (patch) | |
tree | 0382e1f744efa335b5b77f9cb9c87d9ffe8bdd96 /source/blender/editors/sculpt_paint | |
parent | 8d9c48415257eca370dad5c163f0fec06e31dd6b (diff) |
Update paint wire when changing modes
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 368d7e17d99..efd1f0914c7 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1822,6 +1822,8 @@ static int wpaint_mode_toggle_exec(bContext *C, wmOperator *op) ED_vgroup_sync_from_pose(ob); } + BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_PAINT); + /* Weightpaint works by overriding colors in mesh, * so need to make sure we recalc on enter and * exit (exit needs doing regardless because we @@ -2589,6 +2591,8 @@ static int vpaint_mode_toggle_exec(bContext *C, wmOperator *op) BKE_paint_init(scene, ePaintVertex, PAINT_CURSOR_VERTEX_PAINT); } + BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_PAINT); + /* update modifier stack for mapping requirements */ DAG_id_tag_update(&me->id, 0); |