Commit fcf21541 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic '15827_fix_lockviewsize_axis'

2988786c Fix axis size when locking the view size
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Mathieu Westphal's avatarMathieu Westphal <mathieu.westphal@kitware.com>
Tested-by: buildbot's avatarbuildbot <buildbot@kitware.com>
Merge-request: !466
parents e51c775f 2988786c
......@@ -216,6 +216,8 @@ void vtkPVAxesWidget::ExecuteEvent(vtkObject *vtkNotUsed(o),
return;
}
this->SquareRenderer();
vtkCamera *cam = this->ParentRenderer->GetActiveCamera();
double pos[3], fp[3], viewup[3];
cam->GetPosition(pos);
......@@ -227,8 +229,6 @@ void vtkPVAxesWidget::ExecuteEvent(vtkObject *vtkNotUsed(o),
cam->SetFocalPoint(fp);
cam->SetViewUp(viewup);
this->Renderer->ResetCamera();
this->SquareRenderer();
}
void vtkPVAxesWidget::UpdateCursorIcon()
......
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