app: "Reset to default values" does not properly reset generated...
... brush features. My previous commit only fixed aspect ratio reset, but I realize that much more brush options are affected by defaults of generated brushes (size, hardness, aspect ratio, angle and spacing). Let's reset all these after the basic property reset.
This commit is contained in:
@ -809,8 +809,18 @@ gimp_paint_options_reset (GimpConfig *config)
|
||||
parent_config_iface->reset (config);
|
||||
|
||||
if (brush)
|
||||
gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
{
|
||||
gimp_paint_options_set_default_brush_size (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
gimp_paint_options_set_default_brush_hardness (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
gimp_paint_options_set_default_brush_angle (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
gimp_paint_options_set_default_brush_spacing (GIMP_PAINT_OPTIONS (config),
|
||||
brush);
|
||||
}
|
||||
}
|
||||
|
||||
GimpPaintOptions *
|
||||
|
||||
Reference in New Issue
Block a user