mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#2940 Covert old project file geomech camera mx to new display offsetted regime
This commit is contained in:
1 parent
82d6db94cb
commit
d7cffba9f1
4 files changed
+46
-62
No files matched your search
@@ -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