[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59456] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: fix for crash in weight-paint-gradient , missing call to curve curvemapping_initialize

Campbell Barton ideasman42 at gmail.com
Sat Aug 24 10:58:59 CEST 2013


Revision: 59456
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59456
Author:   campbellbarton
Date:     2013-08-24 08:58:58 +0000 (Sat, 24 Aug 2013)
Log Message:
-----------
fix for crash in weight-paint-gradient, missing call to curve curvemapping_initialize

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2013-08-24 08:56:27 UTC (rev 59455)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2013-08-24 08:58:58 UTC (rev 59456)
@@ -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 @@
 		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);
 	}




More information about the Bf-blender-cvs mailing list