fix(invert): allows volume viewport to invert and sync their invert status (#3514)

This commit is contained in:
Alireza authored and GitHub committed 2023-07-06 12:09:34 -04:00
1 parent f3a4f861b4
commit 4a184d0be7
12 files changed
+59 -64

No files matched your search

+3 -5
View File
@@ -457,11 +457,9 @@ function commandsModule({
const { viewport } = enabledElement;
if (viewport instanceof StackViewport) {
const { invert } = viewport.getProperties();
viewport.setProperties({ invert: !invert });
viewport.render();
}
const { invert } = viewport.getProperties();
viewport.setProperties({ invert: !invert });
viewport.render();
},
resetViewport: () => {
const enabledElement = _getActiveViewportEnabledElement();