diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-08-19 23:41:38 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-08-19 23:41:38 +0400 |
commit | 4095fac8493ec9697babe85cdb3af4b036a8e48c (patch) | |
tree | b4c1332e49112681329b3e26f5176398bea7b09b /source/blender/blenkernel/intern/brush.c | |
parent | 9db32483f30bbfbc16959965ffc85a2f4a4a0dac (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 09f53281dbe..9812c49f08b 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -1022,6 +1022,7 @@ struct ImBuf *BKE_brush_gen_radial_control_imbuf(Brush *br) int half = side / 2; int i, j; + curvemapping_initialize(br->curve); texcache = BKE_brush_gen_texture_cache(br, half); im->rect_float = MEM_callocN(sizeof(float) * side * side, "radial control rect"); im->x = im->y = side; |