Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-29 06:50:46 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-29 06:50:46 +0300
commit54059f0ac1d9de04fbe26eaccaea83ed9e937b1b (patch)
tree72c617e1aab37b8b5c32dd0f20d4302623eb9a2d /source/blender/blenkernel/intern/brush.c
parent2176f69602a680af3aafb9938d03d5ef9fd106a7 (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.c7
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;
}