fix(tool-manager): Set tools passive except the active tools

This commit is contained in:
Evren Ozkan 2018-11-29 13:02:12 -05:00
parent 635c8b9119
commit 94406edf21

View File

@ -183,8 +183,10 @@ export const toolManager = {
configuration: defaultToolConfig
});
// Set all tools passive by default in order to render the external data if exists
cornerstoneTools.setToolPassive(toolName);
// Set all tools (except the active tools) passive by default in order to render the external data if exists
if (!activeTool || !Object.values(activeTool).includes(toolName)) {
cornerstoneTools.setToolPassive(toolName);
}
}
});