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