Diffusion Krita 8cd5fbb73bdb

Fix merging layers with not active selection masks

Authored by tymond on Jun 20 2019, 8:40 PM.

Description

Fix merging layers with not active selection masks

Before this commit, there was an assumption in the merging code
that a layer can have only one selection mask (which can be
gathered using ->selectionMask() function). This caused all non-active
selection mask to disappear during/after the merging.
This commit fixes that behaviour by taking all children of the merged
layer that happen to be KisSelectionMasks into account.

Note: it doesn't mean all of the selection masks will be preserved;
for now only the immediate child nodes of the selected layers are
considered.

BUG:402070

Details

Committed
tymondJun 20 2019, 9:08 PM
Parents
R37:d1435c13f9ac: Make sanity checks in the scanline fill more relaxed
Branches
Unknown
Tags
Unknown