diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-29 06:50:46 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-29 06:50:46 +0300 |
commit | 54059f0ac1d9de04fbe26eaccaea83ed9e937b1b (patch) | |
tree | 72c617e1aab37b8b5c32dd0f20d4302623eb9a2d /source/blender/blenkernel/intern/brush.c | |
parent | 2176f69602a680af3aafb9938d03d5ef9fd106a7 (diff) |
* Brought back special normal recalc for sculpt (only recalculates modified faces/verts)
* Means that full object recalc isn't done, so multires works more as expected now
* Moved mesh element cache back to sculpt session (from sculpt cache), really makes more sense there
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 804b14b66b1..c0882451f6c 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -1018,14 +1018,15 @@ static struct ImBuf *brush_gen_radial_control_imbuf(Brush *br) /* Modulate curve with texture */ if(texcache) { - for(i=0; i<side; ++i) + for(i=0; i<side; ++i) { for(j=0; j<side; ++j) { const int col= texcache[i*side+j]; im->rect_float[i*side+j]*= (((char*)&col)[0]+((char*)&col)[1]+((char*)&col)[2])/3.0f/255.0f; } - } + } - MEM_freeN(texcache); + MEM_freeN(texcache); + } return im; } |