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>2012-01-19 08:00:03 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-01-19 08:00:03 +0400
commitd526fc3e20ad4886f78d9953edd0de7f5227418d (patch)
tree3721f9812a7f0c13313dfa1ef029ff8a38a8975a /source/blender/editors/sculpt_paint
parent2953542c6e03b07880a8665930564762be666744 (diff)
Remove some unused alpha code in paint_cursor.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index e979738b157..01b9bbfa00c 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -530,8 +530,6 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
int pixel_radius, hit;
const float root_alpha = brush_alpha(scene, brush);
float visual_strength = root_alpha*root_alpha;
- const float min_alpha = 0.20f;
- const float max_alpha = 0.80f;
/* this is probably here so that rake takes into
account the brush movements before the stroke
@@ -585,9 +583,6 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
if(visual_strength > 1)
visual_strength = 1;
- outline_alpha = ((paint->flags & PAINT_SHOW_BRUSH_ON_SURFACE) ?
- min_alpha + (visual_strength*(max_alpha-min_alpha)) : 0.50f);
-
if(sd->draw_anchored) {
final_radius = sd->anchored_size;
translation[0] = sd->anchored_initial_mouse[0] - vc.ar->winrct.xmin;