diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-24 12:58:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-24 12:58:58 +0400 |
commit | bffd7767e247a5077acec5446b46bd2336dd86d0 (patch) | |
tree | 9b53f0c796bc215e7c914083cc9a2f1d6ef852bb /source/blender/editors/sculpt_paint | |
parent | 2fefb0fe852e6fdbd867885961c9a1583a880cda (diff) |
fix for crash in weight-paint-gradient, missing call to curve curvemapping_initialize
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 2c654507015..bbf8a7000cb 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -61,6 +61,7 @@ #include "BKE_object_deform.h" #include "BKE_paint.h" #include "BKE_report.h" +#include "BKE_colortools.h" #include "WM_api.h" #include "WM_types.h" @@ -3407,6 +3408,9 @@ static int paint_weight_gradient_exec(bContext *C, wmOperator *op) ToolSettings *ts = CTX_data_tool_settings(C); VPaint *wp = ts->wpaint; struct Brush *brush = BKE_paint_brush(&wp->paint); + + curvemapping_initialize(brush->curve); + data.brush = brush; data.weightpaint = BKE_brush_weight_get(scene, brush); } |