mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2940 Covert old project file geomech camera mx to new display offsetted regime
This commit is contained in:
@@ -560,15 +560,18 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
|
||||
stimPlanColors[0]->updateConductivityResultName();
|
||||
}
|
||||
}
|
||||
|
||||
auto* geoView = dynamic_cast<RimGeoMechView*>(riv);
|
||||
if (geoView)
|
||||
{
|
||||
geoView->updateDisplayModelCoordinates();
|
||||
}
|
||||
|
||||
|
||||
riv->loadDataAndUpdate();
|
||||
|
||||
if ( m_project->isProjectFileVersionEqualOrOlderThan("2018.1.1.110") )
|
||||
{
|
||||
auto* geoView = dynamic_cast<RimGeoMechView*>(riv);
|
||||
if ( geoView )
|
||||
{
|
||||
geoView->convertCameraPositionFromOldProjectFiles();
|
||||
}
|
||||
}
|
||||
|
||||
this->setActiveReservoirView(riv);
|
||||
|
||||
RimGridView* rigv = dynamic_cast<RimGridView*>(riv);
|
||||
|
||||
Reference in New Issue
Block a user