fix(tool-manager): Set tools passive except the active tools
This commit is contained in:
parent
635c8b9119
commit
94406edf21
@ -183,8 +183,10 @@ export const toolManager = {
|
|||||||
configuration: defaultToolConfig
|
configuration: defaultToolConfig
|
||||||
});
|
});
|
||||||
|
|
||||||
// Set all tools passive by default in order to render the external data if exists
|
// Set all tools (except the active tools) passive by default in order to render the external data if exists
|
||||||
cornerstoneTools.setToolPassive(toolName);
|
if (!activeTool || !Object.values(activeTool).includes(toolName)) {
|
||||||
|
cornerstoneTools.setToolPassive(toolName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user