From d300c88c8b535d9540713b28c7572801b486ee4c Mon Sep 17 00:00:00 2001 From: Chris Jordan Date: Mon, 4 Nov 2024 10:22:26 -0500 Subject: [PATCH] fix(datasource/graphene) disabling hide segment zero when activating multicut tool so 0 segments do not blend in with the multicut segment when the tool is active --- src/datasource/graphene/frontend.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datasource/graphene/frontend.ts b/src/datasource/graphene/frontend.ts index 24f90734d..87039cd4f 100644 --- a/src/datasource/graphene/frontend.ts +++ b/src/datasource/graphene/frontend.ts @@ -2837,12 +2837,14 @@ class MulticutSegmentsTool extends LayerTool { const priorBaseSegmentHighlighting = displayState.baseSegmentHighlighting.value; const priorHighlightColor = displayState.highlightColor.value; + const priorHideSegmentZero = displayState.hideSegmentZero.value; activation.bindInputEventMap(MULTICUT_SEGMENTS_INPUT_EVENT_MAP); activation.registerDisposer(() => { resetMulticutDisplay(); displayState.baseSegmentHighlighting.value = priorBaseSegmentHighlighting; displayState.highlightColor.value = priorHighlightColor; + displayState.hideSegmentZero.value = priorHideSegmentZero; }); const resetMulticutDisplay = () => { resetTemporaryVisibleSegmentsState(segmentationGroupState); @@ -2863,6 +2865,7 @@ class MulticutSegmentsTool extends LayerTool { displayState.highlightColor.value = multicutState.blueGroup.value ? BLUE_COLOR_HIGHTLIGHT : RED_COLOR_HIGHLIGHT; + displayState.hideSegmentZero.value = false; segmentsState.useTemporaryVisibleSegments.value = true; segmentsState.useTemporarySegmentEquivalences.value = true; // add focus segment and red/blue segments