mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Copy layer blend mode and opacity when we duplicate it
This commit is contained in:
parent
9097dc75f5
commit
dedb470699
@ -341,7 +341,11 @@ void Document::copyLayerContent(const Layer* sourceLayer0, Document* destDoc, La
|
||||
const LayerImage* sourceLayer = static_cast<const LayerImage*>(sourceLayer0);
|
||||
LayerImage* destLayer = static_cast<LayerImage*>(destLayer0);
|
||||
|
||||
// copy cels
|
||||
// Copy blend mode and opacity
|
||||
destLayer->setBlendMode(sourceLayer->blendMode());
|
||||
destLayer->setOpacity(sourceLayer->opacity());
|
||||
|
||||
// Copy cels
|
||||
CelConstIterator it = sourceLayer->getCelBegin();
|
||||
CelConstIterator end = sourceLayer->getCelEnd();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user