Skip to content
Snippets Groups Projects
Commit 91038e32 authored by Xiao Gui's avatar Xiao Gui
Browse files

monkeypatch: reset hem visibility on reg sel

parent eab544e6
No related branches found
No related tags found
No related merge requests found
......@@ -413,6 +413,18 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, OnChanges, Af
* so that the colormap doesn't "flick"
*/
private applyColorMap(){
/**
* on apply color map, reset mesh visibility
* this issue is more difficult to solve than first anticiplated.
* test scenarios:
*
* 1/ hide hemisphere, select region
* 2/ hide hemisphere, select region, unhide hemisphere
* 3/ select region, hide hemisphere, deselect region
*/
for (const key of this.allKeys) {
key.checked = true
}
for (const mesh of this.loadedMeshes) {
const { hemisphere, threeSurfer, vIdxArr } = mesh
const applyCM = this.activeColorMap.get(hemisphere)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment