Skip to content

Commit 887c3c1

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 d306785 commit 887c3c1

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
@@ -2791,12 +2791,14 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
27912791
const priorBaseSegmentHighlighting =
27922792
displayState.baseSegmentHighlighting.value;
27932793
const priorHighlightColor = displayState.highlightColor.value;
2794+
const priorHideSegmentZero = displayState.hideSegmentZero.value;
27942795

27952796
activation.bindInputEventMap(MULTICUT_SEGMENTS_INPUT_EVENT_MAP);
27962797
activation.registerDisposer(() => {
27972798
resetMulticutDisplay();
27982799
displayState.baseSegmentHighlighting.value = priorBaseSegmentHighlighting;
27992800
displayState.highlightColor.value = priorHighlightColor;
2801+
displayState.hideSegmentZero.value = priorHideSegmentZero;
28002802
});
28012803
const resetMulticutDisplay = () => {
28022804
resetTemporaryVisibleSegmentsState(segmentationGroupState);
@@ -2817,6 +2819,7 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
28172819
displayState.highlightColor.value = multicutState.blueGroup.value
28182820
? BLUE_COLOR_HIGHTLIGHT
28192821
: RED_COLOR_HIGHLIGHT;
2822+
displayState.hideSegmentZero.value = false;
28202823
segmentsState.useTemporaryVisibleSegments.value = true;
28212824
segmentsState.useTemporarySegmentEquivalences.value = true;
28222825
// add focus segment and red/blue segments

0 commit comments

Comments
 (0)