mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 00:19:13 +00:00
Fix minor formatting issues introduced in #812
This commit is contained in:
parent
6a0f4afab2
commit
9d8f859438
@ -46,15 +46,13 @@ void FlattenLayers::onExecute()
|
|||||||
|
|
||||||
LayerImage* flatLayer; // The layer onto which everything will be flattened.
|
LayerImage* flatLayer; // The layer onto which everything will be flattened.
|
||||||
color_t bgcolor; // The background color to use for flatLayer.
|
color_t bgcolor; // The background color to use for flatLayer.
|
||||||
|
|
||||||
flatLayer = sprite->backgroundLayer();
|
flatLayer = sprite->backgroundLayer();
|
||||||
if (flatLayer && flatLayer->isVisible())
|
if (flatLayer && flatLayer->isVisible()) {
|
||||||
{
|
|
||||||
// There exists a visible background layer, so we will flatten onto that.
|
// There exists a visible background layer, so we will flatten onto that.
|
||||||
bgcolor = doc->bgColor(flatLayer);
|
bgcolor = doc->bgColor(flatLayer);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
// Create a new transparent layer to flatten everything onto.
|
// Create a new transparent layer to flatten everything onto.
|
||||||
flatLayer = new LayerImage(sprite);
|
flatLayer = new LayerImage(sprite);
|
||||||
ASSERT(flatLayer->isVisible());
|
ASSERT(flatLayer->isVisible());
|
||||||
|
Loading…
Reference in New Issue
Block a user