Fixing activeTool for configurable defaultTool

This commit is contained in:
Eloízio Salgado 2017-01-24 18:46:50 -02:00 committed by Emanuel F. Oliveira
parent c2c8a43c3a
commit bdbf807565

View File

@ -423,7 +423,8 @@ export const toolManager = {
Session.set('ToolManagerActiveTool', tool);
},
getActiveTool() {
if (!activeTool) {
// If toolManager is not initialized, we should set as defaultTool
if (!initialized) {
activeTool = defaultTool;
}