mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2855 Tensor Calculations : Do nothing if tensor is unchecked
This commit is contained in:
parent
085a3ea18a
commit
55796623b5
@ -383,11 +383,12 @@ void RimGeoMechView::updateLegends()
|
||||
m_viewer->addColorLegendToBottomLeftCorner(cellResult()->legendConfig->titledOverlayFrame());
|
||||
}
|
||||
|
||||
updateTensorLegendTextAndRanges(m_tensorResults->arrowColorLegendConfig(), m_currentTimeStep());
|
||||
|
||||
if (tensorResults()->vectorColors() == RimTensorResults::RESULT_COLORS && tensorResults()->showTensors())
|
||||
if (tensorResults()->showTensors())
|
||||
{
|
||||
if (tensorResults()->arrowColorLegendConfig()->showLegend())
|
||||
updateTensorLegendTextAndRanges(m_tensorResults->arrowColorLegendConfig(), m_currentTimeStep());
|
||||
|
||||
if (tensorResults()->vectorColors() == RimTensorResults::RESULT_COLORS &&
|
||||
tensorResults()->arrowColorLegendConfig()->showLegend())
|
||||
{
|
||||
m_viewer->addColorLegendToBottomLeftCorner(m_tensorResults->arrowColorLegendConfig->titledOverlayFrame());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user