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:13:58 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-01-19 08:13:58 +0400
commita2f1cb40b08f5747ff9a24def66b564f329e5ef9 (patch)
tree1797d16e6a3013cb31d315d2af7780276a7f54ab /source/blender/editors
parent6947db25a843dc86e57690af4add7ebfbb46047f (diff)
Remove a couple more unneeded variables from paint cursor drawing.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index 01b9bbfa00c..0148f11b930 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -528,8 +528,6 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
float location[3];
int pixel_radius, hit;
- const float root_alpha = brush_alpha(scene, brush);
- float visual_strength = root_alpha*root_alpha;
/* this is probably here so that rake takes into
account the brush movements before the stroke
@@ -571,17 +569,8 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
outline_col = brush->sub_col;
/* only do if brush is over the mesh */
- if(hit) {
- /* scale the alpha by pen pressure */
- if(sd->draw_pressure && brush_use_alpha_pressure(vc.scene, brush))
- visual_strength *= sd->pressure_value;
-
+ if(hit)
paint_cursor_on_hit(sd, brush, &vc, location);
- }
-
- /* don't show effect of strength past the soft limit */
- if(visual_strength > 1)
- visual_strength = 1;
if(sd->draw_anchored) {
final_radius = sd->anchored_size;