app: handle preview generation for generated brushes separatley

This commit is contained in:
Alexia Death 2014-11-19 23:18:51 +02:00
parent d27030413d
commit c1dc0893bd
1 changed files with 11 additions and 2 deletions

View File

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