Skip to content
Snippets Groups Projects
Commit e287e58d authored by Alexis Girault's avatar Alexis Girault
Browse files

ENH: Disable fly and reset cam in simulation mode

parent 041d3caf
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,11 @@ InteractorStyle::OnChar()
case 'f' :
case 'F' :
{
if (m_simManager->getStatus() != SimulationStatus::INACTIVE)
{
return;
}
if(this->CurrentRenderer != 0)
{
this->AnimState = VTKIS_ANIM_ON;
......@@ -118,6 +123,11 @@ InteractorStyle::OnChar()
case 'r' :
case 'R' :
{
if (m_simManager->getStatus() != SimulationStatus::INACTIVE)
{
return;
}
if(this->CurrentRenderer!=0)
{
this->CurrentRenderer->ResetCamera();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment