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:
David Capello 2014-03-16 19:26:03 -03:00
parent f0802ed766
commit c4605ad513

View File

@ -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)