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:
@ -494,7 +494,7 @@ gimp_smudge_motion (GimpPaintCore *paint_core,
|
|||||||
* gimp_gegl_smudge_with_paint() instead of calling
|
* gimp_gegl_smudge_with_paint() instead of calling
|
||||||
* gegl_buffer_set_color() to reduce gegl's internal processing.
|
* 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,
|
gimp_brush_core_color_area_with_pixmap (brush_core, drawable,
|
||||||
coords, op,
|
coords, op,
|
||||||
|
Reference in New Issue
Block a user