mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Map result color on fault if fault is disabled by user
This commit is contained in:
parent
9fd4c268d8
commit
57f1da1675
@ -166,16 +166,18 @@ void RivReservoirFaultsPartMgr::applySingleColorEffect()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivReservoirFaultsPartMgr::updateColors(size_t timeStepIndex, RimResultSlot* cellResultSlot)
|
||||
{
|
||||
if (m_faultCollection->showResultsOnFaults())
|
||||
for (size_t i = 0; i < m_faultCollection->faults.size(); i++)
|
||||
{
|
||||
for (size_t i = 0; i < m_faultParts.size(); i++)
|
||||
RimFault* rimFault = m_faultCollection->faults[i];
|
||||
|
||||
if (m_faultCollection->showFaultCollection && rimFault->showFault && !m_faultCollection->showResultsOnFaults())
|
||||
{
|
||||
m_faultParts[i]->updateCellResultColor(timeStepIndex, cellResultSlot);
|
||||
m_faultParts[i]->applySingleColorEffect();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_faultParts[i]->updateCellResultColor(timeStepIndex, cellResultSlot);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
applySingleColorEffect();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user