mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4352 Fractures : Delegate isEnabled to leaf classes
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include "RimReservoirCellResultsStorage.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimStimPlanFractureTemplate.h"
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
|
||||
#include "RivWellFracturePartMgr.h"
|
||||
|
||||
@@ -322,16 +321,6 @@ void RimFracture::clearCachedNonDarcyProperties()
|
||||
m_cachedFractureProperties = NonDarcyData();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFracture::isEnabled() const
|
||||
{
|
||||
RimWellPathFractureCollection* fractureCollection = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted(fractureCollection);
|
||||
return fractureCollection->isChecked() && isChecked();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user