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:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user