app: in GimpSmudge, avoid copying brush pixmap when flow = 0

In GimpSmudge, avoid copying the brush's dab to the paint buffer
when using a pixmap brush if the flow parameter is 0 -- it has no
effect in this case.
This commit is contained in:
Ell 2019-02-24 13:11:33 -05:00
parent 5b09af4390
commit fb5987fd57
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ gimp_smudge_motion (GimpPaintCore *paint_core,
* gimp_gegl_smudge_with_paint() instead of calling
* gegl_buffer_set_color() to reduce gegl's internal processing.
*/
if (! brush_color_ptr)
if (! brush_color_ptr && flow > 0.0)
{
gimp_brush_core_color_area_with_pixmap (brush_core, drawable,
coords, op,