Commit 5363de10 authored by Alexis Girault's avatar Alexis Girault

BUG: Check VTK Renderer exists on resetCamera

Was crashing when starting the simulation without interacting first
parent 8e7f4529
......@@ -50,8 +50,13 @@ InteractorStyle::OnTimer()
// Update render delegates
m_simManager->getViewer()->getCurrentRenderer()->updateRenderDelegates();
// Reset camera clipping range
if(this->CurrentRenderer != nullptr)
{
this->CurrentRenderer->ResetCameraClippingRange();
}
// Render
this->CurrentRenderer->ResetCameraClippingRange();
this->Interactor->Render();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment