mirror of https://github.com/GNOME/gimp.git
app: handle preview generation for generated brushes separatley
This commit is contained in:
parent
d27030413d
commit
c1dc0893bd
|
@ -309,8 +309,17 @@ gimp_brush_get_new_preview (GimpViewable *viewable,
|
|||
{
|
||||
gimp_brush_begin_use (brush);
|
||||
|
||||
mask_buf = gimp_brush_transform_mask (brush, scale,
|
||||
0.0, 0.0, 1.0);
|
||||
if (GIMP_IS_BRUSH_GENERATED (brush))
|
||||
{
|
||||
GimpBrushGenerated *gen_brush = GIMP_BRUSH_GENERATED (brush);
|
||||
|
||||
mask_buf = gimp_brush_transform_mask (brush, scale,
|
||||
0.0, 0.0,
|
||||
gimp_brush_generated_get_hardness (gen_brush));
|
||||
}
|
||||
else
|
||||
mask_buf = gimp_brush_transform_mask (brush, scale,
|
||||
0.0, 0.0, 1.0);
|
||||
|
||||
if (! mask_buf)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue