mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Enable Layer > Duplicate option for Layer Groups
Bug reported here: http://steamcommunity.com/app/431730/discussions/1/1479856439026474486/
This commit is contained in:
parent
4585b5e7e5
commit
cca23cb4f7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user