Enable Layer > Duplicate option for Layer Groups

Bug reported here:
http://steamcommunity.com/app/431730/discussions/1/1479856439026474486/
This commit is contained in:
David Capello 2017-10-27 09:42:55 -03:00
parent 4585b5e7e5
commit cca23cb4f7

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2016 David Capello
// Copyright (C) 2001-2017 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
@ -44,8 +44,7 @@ DuplicateLayerCommand::DuplicateLayerCommand()
bool DuplicateLayerCommand::onEnabled(Context* context)
{
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
ContextFlags::HasActiveLayer |
ContextFlags::ActiveLayerIsImage);
ContextFlags::HasActiveLayer);
}
void DuplicateLayerCommand::onExecute(Context* context)