mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2940 Fix crash due to missing guard in geomech camera conversion.
This commit is contained in:
parent
772e7ec7e6
commit
3a05abb42b
@ -599,8 +599,11 @@ void RimGeoMechView::convertCameraPositionFromOldProjectFiles()
|
||||
viewerToViewInterface->setCameraPointOfInterest(newPointOfInterest);
|
||||
}
|
||||
|
||||
m_viewer->mainCamera()->setViewMatrix( this->cameraPosition());
|
||||
m_viewer->setPointOfInterest(this->cameraPointOfInterest());
|
||||
if (m_viewer)
|
||||
{
|
||||
m_viewer->mainCamera()->setViewMatrix(this->cameraPosition());
|
||||
m_viewer->setPointOfInterest(this->cameraPointOfInterest());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user