From 271e1ac00faaa0d8d2d3995dda040688232e727f Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 9 Jan 2007 03:17:03 +0000 Subject: [PATCH] Sculptmode bugfix: textures were not being scaled correctly to a [0,1] range for brush strength. --- source/blender/src/sculptmode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 3080db3525d..b69ad030d44 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1153,6 +1153,7 @@ float tex_strength(EditData *e, float *point, const float len,const unsigned vin p= get_ri_pixel(ri, px, py); } + avg= 0; for(i=0; i<3; ++i) avg+= ((unsigned char*)(p))[i] / 255.0f;