mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Fault Results: Fix of crash with None as selected result
Discovered during regtest
This commit is contained in:
parent
f5b0e03211
commit
076601e0e5
@ -140,10 +140,12 @@ void RivFaultPartMgr::updateCellResultColor(size_t timeStepIndex, RimResultSlot*
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dataAccessObject.notNull())
|
||||
if (dataAccessObject.isNull())
|
||||
{
|
||||
m_nativeFaultGenerator->textureCoordinates(m_nativeFaultFacesTextureCoords.p(), dataAccessObject.p(), mapper);
|
||||
return;
|
||||
}
|
||||
m_nativeFaultGenerator->textureCoordinates(m_nativeFaultFacesTextureCoords.p(), dataAccessObject.p(), mapper);
|
||||
|
||||
}
|
||||
|
||||
if (m_opacityLevel < 1.0f )
|
||||
@ -214,10 +216,12 @@ void RivFaultPartMgr::updateCellResultColor(size_t timeStepIndex, RimResultSlot*
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dataAccessObject.notNull())
|
||||
if (dataAccessObject.isNull())
|
||||
{
|
||||
m_oppositeFaultGenerator->textureCoordinates(m_oppositeFaultFacesTextureCoords.p(), dataAccessObject.p(), mapper);
|
||||
return;
|
||||
}
|
||||
|
||||
m_oppositeFaultGenerator->textureCoordinates(m_oppositeFaultFacesTextureCoords.p(), dataAccessObject.p(), mapper);
|
||||
}
|
||||
|
||||
if (m_opacityLevel < 1.0f )
|
||||
|
Loading…
Reference in New Issue
Block a user