[Bf-blender-cvs] [55395449582] blender2.8: Update paint wire when changing modes
Luca Rood
noreply at git.blender.org
Fri May 5 18:24:51 CEST 2017
Commit: 55395449582432fec91adc7bf8b7d97dc0e49137
Author: Luca Rood
Date: Fri May 5 17:40:42 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB55395449582432fec91adc7bf8b7d97dc0e49137
Update paint wire when changing modes
===================================================================
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 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);
More information about the Bf-blender-cvs
mailing list