mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix compilation error when ENABLE_UI is undefined
This commit is contained in:
parent
bd18248be9
commit
85ce7eea6e
@ -581,7 +581,8 @@ public:
|
|||||||
bool isCanceled() override { return m_canceled; }
|
bool isCanceled() override { return m_canceled; }
|
||||||
|
|
||||||
void onSliceRect(const gfx::Rect& bounds) override {
|
void onSliceRect(const gfx::Rect& bounds) override {
|
||||||
if (getMouseButton() == ToolLoop::Left) {
|
#ifdef ENABLE_UI // TODO add support for slice tool from batch scripts without UI?
|
||||||
|
if (m_editor && getMouseButton() == ToolLoop::Left) {
|
||||||
// Try to select slices, but if it returns false, it means that
|
// Try to select slices, but if it returns false, it means that
|
||||||
// there are no slices in the box to be selected, so we show a
|
// there are no slices in the box to be selected, so we show a
|
||||||
// popup menu to create a new one.
|
// popup menu to create a new one.
|
||||||
@ -602,6 +603,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Cancel the operation (do not create a new transaction for this
|
// Cancel the operation (do not create a new transaction for this
|
||||||
// no-op, e.g. just change the set of selected slices).
|
// no-op, e.g. just change the set of selected slices).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user