Skip to content

Commit 3022a42

Browse files
committed
PERF: Fix unnecessary re-adding of observers during segment editing
When a segment visibility was changed and an effect was active, layout changed notification event was sent out each time, because the logic that checked if segmentation visibility in views have changed did not work. The problem was that after saving the list of observed view node IDs, the list was cleared (probably copy-paste error). git-svn-id: http://svn.slicer.org/Slicer4/trunk@27949 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 62c7fe2 commit 3022a42

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,6 @@ void qMRMLSegmentEditorWidget::setupViewObservations()
26112611
}
26122612
}
26132613

2614-
d->ObservedViewNodeIDs.clear();
26152614
this->updateSliceRotateWarningButtonVisibility();
26162615

26172616
d->ViewsObserved = true;

0 commit comments

Comments
 (0)