[gimp] Bug 748472 - Velocity Parameter on .GIH Brushes don't works
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 748472 - Velocity Parameter on .GIH Brushes don't works
- Date: Thu, 7 May 2015 07:38:38 +0000 (UTC)
commit c3387fcf677ff6b00c269541610f378138c7f20a
Author: Adrian Likins <alikins redhat com>
Date: Thu May 7 00:10:17 2015 -0400
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.
app/core/gimpbrushpipe.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpbrushpipe.c b/app/core/gimpbrushpipe.c
index 51de7fc..4637dd8 100644
--- a/app/core/gimpbrushpipe.c
+++ b/app/core/gimpbrushpipe.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]