Skip to content

Commit 1ec84e1

Browse files
committed
Restore rescaling opacity to B&C editor
This was originally removed in d031416, since I originally thought it did not make sense for a B&C editor to also modify opacity. Users are actually expecting and relying on this, however, and adjusting the opacity to hide the voxels below the minimum is necessary for thresholding them out. Thus, we are restoring this behavior. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
1 parent cc99279 commit 1ec84e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tomviz/BrightnessContrastWidget.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ class BrightnessContrastWidget::Internals
318318
void rescaleNodes(double newMin, double newMax)
319319
{
320320
tomviz::rescaleNodes(m_uncroppedLut, newMin, newMax);
321+
tomviz::rescaleNodes(m_uncroppedOpacity, newMin, newMax);
321322
pushChanges();
322323
updateGui();
323324
}

0 commit comments

Comments
 (0)