mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
MaskByColorCommand needs an active image to be executed (fix #627)
This commit is contained in:
parent
849e40b0f9
commit
a4bf93e4d5
@ -67,7 +67,8 @@ MaskByColorCommand::MaskByColorCommand()
|
||||
bool MaskByColorCommand::onEnabled(Context* context)
|
||||
{
|
||||
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
||||
ContextFlags::HasActiveSprite);
|
||||
ContextFlags::HasActiveSprite |
|
||||
ContextFlags::HasActiveImage);
|
||||
}
|
||||
|
||||
void MaskByColorCommand::onExecute(Context* context)
|
||||
|
Loading…
Reference in New Issue
Block a user