#9413 Perforation: avoid overwriting diameter set when appending perforation

Fixes #9413.
This commit is contained in:
Kristian Bendiksen 2022-12-02 09:19:38 +01:00 committed by Magne Sjaastad
parent e8f5806e55
commit e7ec977c13
4 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ void RicNewPerforationIntervalAtMeasuredDepthFeature::onActionTriggered( bool is
RimPerforationInterval* perforationInterval = new RimPerforationInterval;
double measuredDepth = wellPathSelItem->m_measuredDepth;
perforationInterval->setStartAndEndMD( measuredDepth, measuredDepth + 50 );
perforationInterval->setUnitSystemSpecificDefaults();
wellPath->perforationIntervalCollection()->appendPerforation( perforationInterval );

View File

@ -57,6 +57,7 @@ void RicNewPerforationIntervalFeature::onActionTriggered( bool isChecked )
RimPerforationInterval* perforationInterval = new RimPerforationInterval;
perforationInterval->setStartAndEndMD( wellPath->uniqueStartMD(), wellPath->uniqueEndMD() );
perforationInterval->setUnitSystemSpecificDefaults();
perforationCollection->appendPerforation( perforationInterval );

View File

@ -114,8 +114,6 @@ void RimPerforationCollection::appendPerforation( RimPerforationInterval* perfor
m_perforations.push_back( perforation );
perforation->setUnitSystemSpecificDefaults();
updateConnectedEditors();
Riu3DMainWindowTools::selectAsCurrentItem( perforation );

View File

@ -835,6 +835,7 @@ void RimStimPlanModel::updatePerforationInterval()
if ( !m_perforationInterval )
{
m_perforationInterval = new RimPerforationInterval;
m_perforationInterval->setUnitSystemSpecificDefaults();
m_thicknessDirectionWellPath->perforationIntervalCollection()->appendPerforation( m_perforationInterval );
}