[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43517] trunk/blender/source/blender/ editors/sculpt_paint/paint_cursor.c: Remove a couple more unneeded variables from paint cursor drawing.
Nicholas Bishop
nicholasbishop at gmail.com
Thu Jan 19 05:14:07 CET 2012
Revision: 43517
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43517
Author: nicholasbishop
Date: 2012-01-19 04:13:58 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
Remove a couple more unneeded variables from paint cursor drawing.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c 2012-01-19 04:04:05 UTC (rev 43516)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c 2012-01-19 04:13:58 UTC (rev 43517)
@@ -528,8 +528,6 @@
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,18 +569,9 @@
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;
translation[0] = sd->anchored_initial_mouse[0] - vc.ar->winrct.xmin;
More information about the Bf-blender-cvs
mailing list