[gimp] app: Fix 0.0-scale brushes in interpolation



commit bae745bba2c1bf3e0d348e266643c38495af05f0
Author: Alexia Death <alexiadeath gmail com>
Date:   Wed Mar 10 23:32:31 2010 +0200

    app: Fix 0.0-scale brushes in interpolation

 app/paint/gimpbrushcore.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index 8fa4abe..846a407 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -534,6 +534,18 @@ gimp_brush_core_interpolate (GimpPaintCore    *paint_core,
   gimp_paint_core_get_last_coords (paint_core, &last_coords);
   gimp_paint_core_get_current_coords (paint_core, &current_coords);
 
+  /*Zero sized brushes are unfit for interpolate,
+   * so we just let paint core fail onits own
+   **/
+  if (core->scale == 0.0)
+    {
+      gimp_paint_core_set_last_coords (paint_core, &current_coords);
+
+      gimp_paint_core_paint (paint_core, drawable, paint_options,
+                             GIMP_PAINT_STATE_MOTION, time);
+      return;
+    }
+
   fade_point = gimp_paint_options_get_fade (paint_options, image,
                                             paint_core->pixel_dist);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]