#2855 Tensor Calculations : Do nothing if tensor is unchecked

This commit is contained in:
Magne Sjaastad
2018-05-04 15:02:44 +02:00
parent 085a3ea18a
commit 55796623b5

View File

@@ -383,11 +383,12 @@ void RimGeoMechView::updateLegends()
m_viewer->addColorLegendToBottomLeftCorner(cellResult()->legendConfig->titledOverlayFrame()); m_viewer->addColorLegendToBottomLeftCorner(cellResult()->legendConfig->titledOverlayFrame());
} }
updateTensorLegendTextAndRanges(m_tensorResults->arrowColorLegendConfig(), m_currentTimeStep()); if (tensorResults()->showTensors())
if (tensorResults()->vectorColors() == RimTensorResults::RESULT_COLORS && 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()); m_viewer->addColorLegendToBottomLeftCorner(m_tensorResults->arrowColorLegendConfig->titledOverlayFrame());
} }