mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Don't copy LockMove flag in Document::copyLayerContent() for a second background
This commit is contained in:
parent
31e3a693cd
commit
750c7b5414
@ -350,7 +350,7 @@ void Document::copyLayerContent(const Layer* sourceLayer0, Document* destDoc, La
|
||||
// Remove the "background" flag if the destDoc already has a background layer.
|
||||
if (((int)dstFlags & (int)LayerFlags::Background) == (int)LayerFlags::Background &&
|
||||
(destDoc->sprite()->backgroundLayer())) {
|
||||
dstFlags = (LayerFlags)((int)dstFlags ^ (int)LayerFlags::Background);
|
||||
dstFlags = (LayerFlags)((int)dstFlags & ~(int)(LayerFlags::BackgroundLayerFlags));
|
||||
}
|
||||
|
||||
// Copy the layer name
|
||||
|
Loading…
Reference in New Issue
Block a user