[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59311] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix crash caused by own commit to optimize out curvemapping

Antony Riakiotakis kalast at gmail.com
Mon Aug 19 21:41:39 CEST 2013


Revision: 59311
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59311
Author:   psy-fi
Date:     2013-08-19 19:41:38 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
Fix crash caused by own commit to optimize out curvemapping
initialization. In sculpt mode, when using shift-click to switch to the
smooth brush it was possible to ommit initialization of curvemapping for
that brush.

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

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-08-19 19:18:25 UTC (rev 59310)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-08-19 19:41:38 UTC (rev 59311)
@@ -70,6 +70,7 @@
 #include "BKE_node.h"
 #include "BKE_object.h"
 #include "BKE_subsurf.h"
+#include "BKE_colortools.h"
 
 #include "BIF_glutil.h"
 
@@ -3771,6 +3772,7 @@
 				brush = br;
 				cache->saved_smooth_size = BKE_brush_size_get(scene, brush);
 				BKE_brush_size_set(scene, brush, size);
+				curvemapping_initialize(brush->curve);
 			}
 		}
 	}




More information about the Bf-blender-cvs mailing list