Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-02 06:39:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-02 06:39:30 +0400
commit0fadb7e47968b73189ea11d832be582a63fda1e6 (patch)
tree4d7bf843dbaeae1b6242351281886282ce5885f4
parent29ffcf408f6e87673521492e452cb74eee4fc039 (diff)
add missing call to update rv3d->persmatob, mostly this worked except with active-unselected object
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c2
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);