fix(tool-manager): Set tools passive except the active tools
This commit is contained in:
1 parent
635c8b9119
commit
94406edf21
1 file changed
+4
-2
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user