mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BugFix: viewAngle reset in static camera mode
This commit is contained in:
@ -237,6 +237,15 @@ void Foam::scene::initialise(vtkRenderer* renderer, const word& outputName)
|
||||
|
||||
renderer->ResetCamera();
|
||||
|
||||
// Restore viewAngle (it might be reset by clipping)
|
||||
vtkCamera* camera = renderer->GetActiveCamera();
|
||||
|
||||
if (!parallelProjection_)
|
||||
{
|
||||
camera->SetViewAngle(cameraViewAngle_->value(position()));
|
||||
}
|
||||
camera->Modified();
|
||||
|
||||
clipActor->VisibilityOff();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user