Bug 748472 - Velocity Parameter on .GIH Brushes don't works

The pipe index for velocity was being multiplied
by 3.0 and rounded, making it larger than the
available rank and always clamped to the last
brush image in velocity ranks.
This commit is contained in:
Adrian Likins 2015-05-07 00:10:17 -04:00 committed by Michael Natterer
parent e01f067332
commit c3387fcf67
1 changed files with 1 additions and 5 deletions

View File

@ -199,7 +199,6 @@ gimp_brush_pipe_select_brush (GimpBrush *brush,
{
GimpBrushPipe *pipe = GIMP_BRUSH_PIPE (brush);
gint i, brushix, ix;
gdouble velocity;
if (pipe->n_brushes == 1)
return GIMP_BRUSH (pipe->current);
@ -221,10 +220,7 @@ gimp_brush_pipe_select_brush (GimpBrush *brush,
break;
case PIPE_SELECT_VELOCITY:
velocity = current_coords->velocity;
/* Max velocity is 3.0, picking stamp as a ratio*/
ix = ROUND ((3.0 / velocity) * pipe->rank[i]);
ix = ROUND (current_coords->velocity * pipe->rank[i]);
break;
case PIPE_SELECT_RANDOM: