mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
@@ -149,12 +149,16 @@ std::vector<size_t> RimFracture::getPotentiallyFracturedCells()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
{
|
||||
if (changedField == &m_fractureTemplate)
|
||||
{
|
||||
perforationLength = m_fractureTemplate->perforationLength();
|
||||
azimuth = m_fractureTemplate->azimuthAngle();
|
||||
}
|
||||
|
||||
if (changedField == &azimuth ||
|
||||
changedField == &m_fractureTemplate)
|
||||
{
|
||||
|
||||
if (changedField == &m_fractureTemplate) azimuth = m_fractureTemplate->azimuthAngle();
|
||||
|
||||
setRecomputeGeometryFlag();
|
||||
|
||||
RimView* rimView = nullptr;
|
||||
@@ -175,10 +179,6 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
|
||||
|
||||
}
|
||||
|
||||
if (changedField == &perforationLength ||
|
||||
changedField == & m_fractureTemplate)
|
||||
perforationLength = m_fractureTemplate->perforationLength();
|
||||
azimuth = m_fractureTemplate->azimuthAngle();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user