mirror of https://github.com/GNOME/gimp.git
paint: Don't paint with gradient if dynamics not enabled
Resolves #10262. The gradient color was being used if Confetti or Color from Gradient dynamics had been set, even if dynamics had been disabled. This adds an additional check to make sure dynamics are enabled first - otherwise, the brush's existing stamp or color is used to paint.
This commit is contained in:
parent
41872a5426
commit
b68a86e486
|
@ -189,7 +189,8 @@ gimp_paintbrush_real_get_paint_params (GimpPaintbrush *paintbrush,
|
|||
|
||||
*paint_mode = gimp_context_get_paint_mode (context);
|
||||
|
||||
if (gimp_paint_options_get_gradient_color (paint_options, image,
|
||||
if (gimp_paint_options_are_dynamics_enabled (paint_options) &&
|
||||
gimp_paint_options_get_gradient_color (paint_options, image,
|
||||
grad_point,
|
||||
paint_core->pixel_dist,
|
||||
paint_color))
|
||||
|
|
Loading…
Reference in New Issue