mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
app: when creating a layer mask from the layer's alpha, but the layer
has no alpha, simply fill the mask with complete opacity instead of leaving the user with a completely empty mask (and thus a completely transparent layer).
This commit is contained in:
parent
1697e4575f
commit
d63c4deb68
1 changed files with 4 additions and 0 deletions
|
@ -2081,6 +2081,10 @@ gimp_layer_create_mask (GimpLayer *layer,
|
|||
1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gimp_channel_all (GIMP_CHANNEL (mask), FALSE);
|
||||
}
|
||||
break;
|
||||
|
||||
case GIMP_ADD_MASK_SELECTION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue