#10690 Fractures: Show Perforation Interval for azimuth fractures.

Fixes #10690.
This commit is contained in:
Kristian Bendiksen 2023-11-20 09:01:34 +01:00
parent a2919d4b0e
commit 5bba0eaea8

View File

@ -923,7 +923,11 @@ void RivWellFracturePartMgr::appendFracturePerforationLengthParts( const RimEcli
if ( !m_rimFracture->isChecked() ) return;
if ( !m_rimFracture->fractureTemplate() ) return;
if ( m_rimFracture->fractureTemplate()->orientationType() != RimFractureTemplate::ALONG_WELL_PATH ) return;
bool hasPerforation = ( m_rimFracture->fractureTemplate()->orientationType() == RimFractureTemplate::ALONG_WELL_PATH ||
( m_rimFracture->fractureTemplate()->orientationType() == RimFractureTemplate::AZIMUTH &&
m_rimFracture->fractureTemplate()->useUserDefinedPerforationLength() ) );
if ( !hasPerforation ) return;
auto displayCoordTransform = activeView.displayCoordTransform();
if ( displayCoordTransform.isNull() ) return;