Skip to content

Commit d300c88

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 1e8fdc9 commit d300c88

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
@@ -2837,12 +2837,14 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
28372837
const priorBaseSegmentHighlighting =
28382838
displayState.baseSegmentHighlighting.value;
28392839
const priorHighlightColor = displayState.highlightColor.value;
2840+
const priorHideSegmentZero = displayState.hideSegmentZero.value;
28402841

28412842
activation.bindInputEventMap(MULTICUT_SEGMENTS_INPUT_EVENT_MAP);
28422843
activation.registerDisposer(() => {
28432844
resetMulticutDisplay();
28442845
displayState.baseSegmentHighlighting.value = priorBaseSegmentHighlighting;
28452846
displayState.highlightColor.value = priorHighlightColor;
2847+
displayState.hideSegmentZero.value = priorHideSegmentZero;
28462848
});
28472849
const resetMulticutDisplay = () => {
28482850
resetTemporaryVisibleSegmentsState(segmentationGroupState);
@@ -2863,6 +2865,7 @@ class MulticutSegmentsTool extends LayerTool<SegmentationUserLayer> {
28632865
displayState.highlightColor.value = multicutState.blueGroup.value
28642866
? BLUE_COLOR_HIGHTLIGHT
28652867
: RED_COLOR_HIGHLIGHT;
2868+
displayState.hideSegmentZero.value = false;
28662869
segmentsState.useTemporaryVisibleSegments.value = true;
28672870
segmentsState.useTemporarySegmentEquivalences.value = true;
28682871
// add focus segment and red/blue segments

0 commit comments

Comments
 (0)