#2940 Fix crash due to missing guard in geomech camera conversion.

This commit is contained in:
Jacob Støren 2018-05-22 09:34:27 +02:00
parent 772e7ec7e6
commit 3a05abb42b

View File

@ -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());
}
}
}