Commit 7de8f03a authored by Halla Rempt's avatar Halla Rempt
Browse files

Fix alpha locking of individual layers.

parent 54f969f8
......@@ -248,15 +248,13 @@ QBitArray KisResourcesSnapshot::channelLockFlags() const
if ((paintLayer = dynamic_cast<KisPaintLayer*>(m_d->currentNode.data()))) {
channelFlags = paintLayer->channelLockFlags();
if (channelFlags.isEmpty()) {
channelFlags = paintLayer->colorSpace()->channelFlags(true, true);
}
if (m_d->globalAlphaLock) {
if (channelFlags.isEmpty()) {
channelFlags = paintLayer->colorSpace()->channelFlags(true, true);
}
channelFlags &= paintLayer->colorSpace()->channelFlags(true, false);
}
else {
channelFlags |= paintLayer->colorSpace()->channelFlags(false, true);
}
}
return channelFlags;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment