Fix window edge axis crash

This commit is contained in:
Rebecca Cox 2018-02-12 09:05:58 +01:00
parent cf3a1ad43f
commit 063802130c

View File

@ -721,9 +721,13 @@ RimViewWindow* RiuViewer::ownerViewWindow() const
//--------------------------------------------------------------------------------------------------
void RiuViewer::optimizeClippingPlanes()
{
m_windowEdgeAxisOverlay->setDisplayCoordTransform(m_rimView->displayCoordTransform().p());
if (m_showWindowEdgeAxes)
{
m_windowEdgeAxisOverlay->setDisplayCoordTransform(m_rimView->displayCoordTransform().p());
m_windowEdgeAxisOverlay->updateFromCamera(this->mainCamera());
}
m_gridBoxGenerator->updateFromCamera(mainCamera());
m_windowEdgeAxisOverlay->updateFromCamera(this->mainCamera());
caf::Viewer::optimizeClippingPlanes();
}