Commit 6c76cc5a authored by Sebastien Barre's avatar Sebastien Barre
Browse files

BUG: (?): GetActiveCamera would instantiate a camera, and call a ResetCamera....

BUG: (?): GetActiveCamera would instantiate a camera, and call a ResetCamera. This would have a lot of side effects side effects (like computing the bounds of all props, which will eventually call UpdateInformation() on data objects, etc). It's old, but let's try without. Obviously can be solved by calling ResetCamera manually.
    // this->ResetCamera();
parent 0fd08230
......@@ -33,7 +33,7 @@
#include "vtkTimerLog.h"
#include "vtkVolume.h"
vtkCxxRevisionMacro(vtkRenderer, "1.216");
vtkCxxRevisionMacro(vtkRenderer, "1.217");
//----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
......@@ -544,7 +544,10 @@ vtkCamera *vtkRenderer::GetActiveCamera()
vtkCamera *cam = this->MakeCamera();
this->SetActiveCamera(cam);
cam->Delete();
this->ResetCamera();
// The following line has been commented out as it has a lot of
// side effects (like computing the bounds of all props, which will
// eventually call UpdateInformation() on data objects, etc).
// this->ResetCamera();
}
return this->ActiveCamera;
......
Supports Markdown
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