mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-04 04:30:51 -06:00
#5506 Use START_AT_FIRST_TARGET for well paths created with old ResInsight versions
This commit is contained in:
parent
c0124f3bf4
commit
56a65742c4
@ -21,6 +21,7 @@
|
||||
#include "WellPathCommands/PointTangentManipulator/RicWellPathGeometry3dEditor.h"
|
||||
#include "WellPathCommands/RicCreateWellTargetsPickEventHandler.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaFieldHandleTools.h"
|
||||
#include "RiaJCurveCalculator.h"
|
||||
#include "RiaLogging.h"
|
||||
@ -31,6 +32,7 @@
|
||||
#include "RigWellPath.h"
|
||||
|
||||
#include "RimModeledWellPath.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellPathTarget.h"
|
||||
|
||||
#include "RiuViewerCommands.h"
|
||||
@ -100,7 +102,6 @@ RimWellPathGeometryDef::RimWellPathGeometryDef()
|
||||
RiaFieldhandleTools::disableWriteAndSetFieldHidden( &m_referencePointXyz_OBSOLETE );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_wellStartType, "WellStartType", "Start Type", "", "", "" );
|
||||
m_wellStartType.xmlCapability()->disableIO();
|
||||
|
||||
/// To be removed ?
|
||||
CAF_PDM_InitFieldNoDefault( &m_parentWell, "ParentWell", "Parent Well", "", "", "" );
|
||||
@ -578,4 +579,9 @@ void RimWellPathGeometryDef::initAfterRead()
|
||||
m_referencePointXyz_OBSOLETE().y(),
|
||||
-m_referencePointXyz_OBSOLETE().z() );
|
||||
}
|
||||
|
||||
if ( RiaApplication::instance()->project()->isProjectFileVersionEqualOrOlderThan( "2019.12.1" ) )
|
||||
{
|
||||
m_wellStartType = START_AT_FIRST_TARGET;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user