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:
Alx Sa 2023-11-02 11:19:16 +00:00
parent 41872a5426
commit b68a86e486
1 changed files with 2 additions and 1 deletions

View File

@ -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))