Fault results: Show fault color if color mode is selected

This commit is contained in:
Magne Sjaastad 2014-08-21 13:16:08 +02:00
parent f3c7c3017c
commit ecfea98e20

View File

@ -1994,7 +1994,11 @@ void RimReservoirView::updateFaultColors()
for (size_t i = 0; i < faultGeometriesToRecolor.size(); ++i)
{
if (this->animationMode() && this->cellEdgeResult()->hasResult())
if (this->faultResultSettings()->visualizationMode() == RimFaultResultSlot::FAULT_COLOR)
{
m_reservoirGridPartManager->updateFaultColors(faultGeometriesToRecolor[i], m_currentTimeStep, faultResultSlot);
}
else if (this->animationMode() && this->cellEdgeResult()->hasResult())
{
m_reservoirGridPartManager->updateFaultCellEdgeResultColor(faultGeometriesToRecolor[i], m_currentTimeStep, faultResultSlot, this->cellEdgeResult());
}