Skip to content

Commit 1b8796a

Browse files
committed
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
1 parent 4061103 commit 1b8796a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/datasource/graphene/frontend.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,12 +2772,14 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
27722772
const priorBaseSegmentHighlighting =
27732773
displayState.baseSegmentHighlighting.value;
27742774
const priorHighlightColor = displayState.highlightColor.value;
2775+
const priorHideSegmentZero = displayState.hideSegmentZero.value;
27752776

27762777
activation.bindInputEventMap(MULTICUT_SEGMENTS_INPUT_EVENT_MAP);
27772778
activation.registerDisposer(() => {
27782779
resetMulticutDisplay();
27792780
displayState.baseSegmentHighlighting.value = priorBaseSegmentHighlighting;
27802781
displayState.highlightColor.value = priorHighlightColor;
2782+
displayState.hideSegmentZero.value = priorHideSegmentZero;
27812783
});
27822784
const resetMulticutDisplay = () => {
27832785
resetTemporaryVisibleSegmentsState(segmentationGroupState);
@@ -2798,6 +2800,7 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
27982800
displayState.highlightColor.value = multicutState.blueGroup.value
27992801
? BLUE_COLOR_HIGHTLIGHT
28002802
: RED_COLOR_HIGHLIGHT;
2803+
displayState.hideSegmentZero.value = false;
28012804
segmentsState.useTemporaryVisibleSegments.value = true;
28022805
segmentsState.useTemporarySegmentEquivalences.value = true;
28032806
// add focus segment and red/blue segments

0 commit comments

Comments
 (0)