UV sculpting was missing curve initialization causing crashes. Reported
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 1 Oct 2013 15:04:58 +0000 (15:04 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 1 Oct 2013 15:04:58 +0000 (15:04 +0000)
by Sebastian Koenig, thanks!

source/blender/editors/sculpt_paint/sculpt_uv.c

index d630b6478fb9e224227f6fe69f2b42f6c74ed89a..6401842f43ed9b4229d537b7e6e90ea8240a665c 100644 (file)
@@ -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);