From 0fadb7e47968b73189ea11d832be582a63fda1e6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 2 May 2013 02:39:30 +0000 Subject: add missing call to update rv3d->persmatob, mostly this worked except with active-unselected object --- source/blender/editors/sculpt_paint/paint_vertex.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3