diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 21db8e281a7..034110a29be 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -3388,6 +3388,8 @@ static int paint_weight_gradient_exec(bContext *C, wmOperator *op) data.weightpaint = BKE_brush_weight_get(scene, brush); } + ED_view3d_init_mats_rv3d(ob, ar->regiondata); + dm->foreachMappedVert(dm, gradientVert__mapFunc, &data); DAG_id_tag_update(&ob->id, OB_RECALC_DATA); |