Commit c7adff4f authored by Jehan's avatar Jehan

Revert "app: save gradient first and last color with dynamics color output..."

This reverts commit 15b5b2c8.
This feature is "undiscoverable" according to Mitch, and we are not sure
how much the endpoint colors are special to the user.
parent 3c717ac4
......@@ -98,25 +98,20 @@ gimp_paintbrush_paint (GimpPaintCore *paint_core,
GimpContext *context = GIMP_CONTEXT (paint_options);
GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_core);
GimpDynamics *dynamics;
GimpRGB color;
dynamics = gimp_context_get_dynamics (GIMP_CONTEXT (paint_options));
if (gimp_dynamics_is_output_enabled (dynamics, GIMP_DYNAMICS_OUTPUT_COLOR))
if (! gimp_dynamics_is_output_enabled (dynamics, GIMP_DYNAMICS_OUTPUT_COLOR) &&
(! brush_core->brush || ! gimp_brush_get_pixmap (brush_core->brush)))
/* Getting colors from a gradient. */
GimpGradient *gradient = gimp_context_get_gradient (context);
gimp_gradient_get_color_at (gradient, context, NULL, 0.0, FALSE, &color);
gimp_palettes_add_color_history (context->gimp, &color);
gimp_gradient_get_color_at (gradient, context, NULL, 1.0, FALSE, &color);
gimp_palettes_add_color_history (context->gimp, &color);
else if (! brush_core->brush || ! gimp_brush_get_pixmap (brush_core->brush))
/* We don't save color history for pixmap brushes. */
gimp_context_get_foreground (context, &color);
gimp_palettes_add_color_history (context->gimp, &color);
/* We don't save gradient color history and
* pixmap brushes have no color to save.
GimpRGB foreground;
gimp_context_get_foreground (context, &foreground);
gimp_palettes_add_color_history (context->gimp,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment