diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-10-01 19:04:58 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-10-01 19:04:58 +0400 |
commit | 4c6a6a8fe372a1fa73da51d52bd473dcb5734492 (patch) | |
tree | 2268c3002af7f15ca046c0b51080f647d3956f97 /source/blender/editors/sculpt_paint/sculpt_uv.c | |
parent | 3169e96ae25f9b00f68e1586e97d53f718723c7e (diff) |
UV sculpting was missing curve initialization causing crashes. Reported
by Sebastian Koenig, thanks!
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_uv.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_uv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_uv.c b/source/blender/editors/sculpt_paint/sculpt_uv.c index d630b6478fb..6401842f43e 100644 --- a/source/blender/editors/sculpt_paint/sculpt_uv.c +++ b/source/blender/editors/sculpt_paint/sculpt_uv.c @@ -45,6 +45,7 @@ #include "BKE_brush.h" #include "BKE_paint.h" +#include "BKE_colortools.h" #include "BKE_context.h" #include "BKE_main.h" #include "BKE_depsgraph.h" @@ -538,6 +539,8 @@ static UvSculptData *uv_sculpt_stroke_init(bContext *C, wmOperator *op, const wm op->customdata = data; + curvemapping_initialize (ts->uvsculpt->paint.brush->curve); + if (data) { int counter = 0, i; ARegion *ar = CTX_wm_region(C); |