Commit 350c6ca1 authored by Michael Natterer's avatar Michael Natterer 😴

Bug 775134 - mypaint-brush: Saved color in a brush isn't taken into account

gimp_mybrush_core_create_brushes(): don't set the current FG or BG on
the brush if its RESTORE_COLOR setting is 1.0 (TRUE).
parent 619a8856
......@@ -381,15 +381,19 @@ gimp_mybrush_core_create_brushes (GimpMybrushCore *mybrush,
if (brush_data)
mypaint_brush_from_string (brush, brush_data);
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_H,
hsv.h);
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_S,
hsv.s);
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_V,
hsv.v);
if (! mypaint_brush_get_base_value (brush,
MYPAINT_BRUSH_SETTING_RESTORE_COLOR))
{
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_H,
hsv.h);
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_S,
hsv.s);
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_COLOR_V,
hsv.v);
}
mypaint_brush_set_base_value (brush,
MYPAINT_BRUSH_SETTING_RADIUS_LOGARITHMIC,
......
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