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:
authorCampbell Barton <ideasman42@gmail.com>2009-08-21 11:19:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-21 11:19:06 +0400
commit46fb2d37e347b6ecbd0097aa662cd2fdc4b65f33 (patch)
tree5f29751ed04152753802f894cf65e7fd96fd593f /source/blender/blenkernel/intern/brush.c
parent589ea76833778a37fe0ec93cc28de1102d9793b5 (diff)
have texture paint use the curve rather then the falloff setting (falloff gave ugly center area of 100% opacity)
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index a7b5a16d924..bce4e1120be 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -409,23 +409,6 @@ float brush_sample_falloff(Brush *brush, float dist)
return 0.0f;
}
-float brush_sample_falloff_noalpha(Brush *brush, float dist)
-{
- float outer, inner;
-
- outer = brush->size >> 1;
- inner = outer*brush->innerradius;
-
- if (dist <= inner) {
- return 1.0f;
- }
- else if ((dist < outer) && (inner < outer)) {
- return 1.0f - sqrt((dist - inner)/(outer - inner));
- }
- else
- return 0.0f;
-}
-
void brush_sample_tex(Brush *brush, float *xy, float *rgba)
{
MTex *mtex= brush->mtex[brush->texact];