Loss of layer group mask when a layer merge inside a group results in only one remaining layer
Environment/Versions
- GIMP version:2.99.14
- Package: flatpak
- Operating System: linux
Description of the bug
When a layer group has a mask, and you merge down a layer within that group to another layer, the group mask is lost
Reproduction
Is the bug reproducible? always
Reproduction steps:
- create a layer group containing two layers
- add a black mask to the group, put a white square in it.
- merge down the top layer to the lower
- mask is lost
…
Expected result: mask is kept
Actual result: mask is lost
Additional information
this is part of the funky behavior of layer group masks, the mask data only exists if there is a layer beneath it. So as the two layers merge, the data is lost.
Would it be foolish to suggest that if a group has been given a mask, then that mask is a drawable, like any other. It's dynamically clipped and lost at the moment. I can only imagine there is good reason it's the way it is.
Edited by Mark Sweeney