mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +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)
|
bool MaskByColorCommand::onEnabled(Context* context)
|
||||||
{
|
{
|
||||||
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
||||||
ContextFlags::HasActiveSprite);
|
ContextFlags::HasActiveSprite |
|
||||||
|
ContextFlags::HasActiveImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaskByColorCommand::onExecute(Context* context)
|
void MaskByColorCommand::onExecute(Context* context)
|
||||||
|
Loading…
Reference in New Issue
Block a user