mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Fixed bugs when the current tool was used in an hidden/locked layer.
This commit is contained in:
parent
2d5e2dc7d7
commit
7974bffb80
@ -910,7 +910,11 @@ bool Editor::msg_proc(JMessage msg)
|
||||
else if (m_sprite->layer) {
|
||||
assert(m_toolLoopManager == NULL);
|
||||
|
||||
m_toolLoopManager = new ToolLoopManager(createToolLoopImpl(UIContext::instance(), msg));
|
||||
IToolLoop* toolLoop = createToolLoopImpl(UIContext::instance(), msg);
|
||||
if (!toolLoop)
|
||||
return true; // Return without capturing mouse
|
||||
|
||||
m_toolLoopManager = new ToolLoopManager(toolLoop);
|
||||
if (!m_toolLoopManager)
|
||||
return true; // Return without capturing mouse
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user