Skip to content

Commit

Permalink
#2940 Fix crash due to missing guard in geomech camera conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobStoren committed May 22, 2018
1 parent 772e7ec commit 3a05abb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ApplicationCode/ProjectDataModel/RimGeoMechView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}

Expand Down

0 comments on commit 3a05abb

Please sign in to comment.