mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
app: treat the layer mask correctly in gimp_layer_get_opacity_at()
Only take the mask into account if it is actually applied.
This commit is contained in:
parent
adaa67548e
commit
bb43a89ef8
1 changed files with 2 additions and 1 deletions
|
@ -1235,7 +1235,8 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
|
|||
GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
|
||||
}
|
||||
|
||||
if (layer->mask)
|
||||
if (gimp_layer_get_mask (layer) &&
|
||||
gimp_layer_get_apply_mask (layer))
|
||||
{
|
||||
gdouble mask_value;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue