mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
Don't show selection handles in the MiniEditor
This commit is contained in:
parent
3bbdb80461
commit
7632e83046
@ -101,6 +101,8 @@ namespace app {
|
||||
EditorDecorator* decorator() { return m_decorator; }
|
||||
void setDecorator(EditorDecorator* decorator) { m_decorator = decorator; }
|
||||
|
||||
EditorFlags editorFlags() const { return m_flags; }
|
||||
|
||||
Document* document() { return m_document; }
|
||||
Sprite* sprite() { return m_sprite; }
|
||||
Layer* layer() { return m_layer; }
|
||||
|
@ -660,7 +660,8 @@ void StandbyState::Decorator::postRenderDecorator(EditorPostRender* render)
|
||||
Editor* editor = render->getEditor();
|
||||
|
||||
// Draw transformation handles (if the mask is visible and isn't frozen).
|
||||
if (editor->document()->isMaskVisible() &&
|
||||
if (editor->editorFlags() & Editor::kShowMaskFlag &&
|
||||
editor->document()->isMaskVisible() &&
|
||||
!editor->document()->mask()->isFrozen()) {
|
||||
// And draw only when the user has a selection tool as active tool.
|
||||
tools::Tool* currentTool = editor->getCurrentEditorTool();
|
||||
|
Loading…
x
Reference in New Issue
Block a user