Fixed bugs when the current tool was used in an hidden/locked layer.

This commit is contained in:
David Capello 2010-03-28 17:29:13 -03:00
parent 2d5e2dc7d7
commit 7974bffb80

View File

@ -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