fix(black-viewports): MPR viewports were turning black if their parent stack had it's properties reset (#5219)

This commit is contained in:
Ibrahim 2025-07-16 14:40:20 -04:00 committed by GitHub
parent 26d77fb149
commit 3ff9a65ef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,6 +345,11 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
delete properties?.voiRange; delete properties?.voiRange;
delete properties?.VOILUTFunction; delete properties?.VOILUTFunction;
} }
if (properties?.colormap) {
if (properties.colormap?.opacity?.length === 0) {
delete properties.colormap.opacity;
}
}
return properties; return properties;
}; };