mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Enable "remove layer" command to remove all layers
We can remove all layers anyway from timeline selecting a range of layers.
This commit is contained in:
parent
f0802ed766
commit
c4605ad513
@ -56,9 +56,7 @@ bool RemoveLayerCommand::onEnabled(Context* context)
|
||||
{
|
||||
ContextWriter writer(context);
|
||||
Sprite* sprite(writer.sprite());
|
||||
return
|
||||
sprite &&
|
||||
sprite->countLayers() > 1;
|
||||
return sprite;
|
||||
}
|
||||
|
||||
void RemoveLayerCommand::onExecute(Context* context)
|
||||
|
Loading…
Reference in New Issue
Block a user