#14520 Fix Cell Edge Results loaded even if disabled

Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-13 15:51:46 +02:00
committed by Magne Sjaastad
co-authored by magnesj
parent acbc041f13
commit 2a0f9a3b25
@@ -61,7 +61,7 @@ RimCellEdgeColors::RimCellEdgeColors()
{
CAF_PDM_InitObject( "Cell Edge Result", ":/EdgeResult_1.png" );
CAF_PDM_InitField( &m_enableCellEdgeColors, "EnableCellEdgeColors", true, "Enable Cell Edge Results" );
CAF_PDM_InitField( &m_enableCellEdgeColors, "EnableCellEdgeColors", false, "Enable Cell Edge Results" );
CAF_PDM_InitFieldNoDefault( &m_propertyType, "propertyType", "Property Type" );
@@ -112,6 +112,7 @@ void RimCellEdgeColors::setReservoirView( RimEclipseView* ownerReservoirView )
//--------------------------------------------------------------------------------------------------
void RimCellEdgeColors::loadResult()
{
if ( !m_enableCellEdgeColors() ) return;
if ( !m_reservoirView->currentGridCellResults() ) return;
resetResultAddresses();