mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix Flip command when ENABLE_UI is off
This commit is contained in:
parent
c49c6ae068
commit
1b08d5248c
@ -75,6 +75,7 @@ void FlipCommand::onExecute(Context* ctx)
|
||||
|
||||
CelList cels;
|
||||
if (m_flipMask) {
|
||||
#ifdef ENABLE_UI
|
||||
// If we want to flip the visible mask we can go to
|
||||
// MovingPixelsState (even when the range is enabled, because now
|
||||
// PixelsMovement support ranges).
|
||||
@ -88,6 +89,7 @@ void FlipCommand::onExecute(Context* ctx)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
auto range = site.range();
|
||||
if (range.enabled()) {
|
||||
@ -100,8 +102,12 @@ void FlipCommand::onExecute(Context* ctx)
|
||||
}
|
||||
|
||||
if (cels.empty()) {
|
||||
#ifdef ENABLE_UI
|
||||
if (ctx->isUIAvailable()) {
|
||||
StatusBar::instance()->showTip(
|
||||
1000, Strings::statusbar_tips_all_layers_are_locked());
|
||||
}
|
||||
#endif // ENABLE_UI
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user