Sculptmode bugfix: textures were not being scaled correctly to a [0,1] range for brush strength.

This commit is contained in:
2007-01-09 03:17:03 +00:00
parent 73596ed036
commit 271e1ac00f

View File

@@ -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;