Commit 9ad5e628 authored by David Lonie's avatar David Lonie Committed by Kitware Robot

Merge topic 'mapper_update_fix'

e554e0b6 Fix bug in vtkMapper::GetBounds.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: T.J. Corona's avatarT.J. Corona <tj.corona@kitware.com>
Merge-request: !2049
parents 2575d4ec e554e0b6
......@@ -131,17 +131,17 @@ vtkMapper::~vtkMapper()
// (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
double *vtkMapper::GetBounds()
{
if (!this->Static)
{
this->Update();
}
vtkDataSet *input = this->GetInput();
if ( ! input )
if (!input)
{
vtkMath::UninitializeBounds(this->Bounds);
vtkMath::UninitializeBounds(this->Bounds);
}
else
{
if (!this->Static)
{
this->Update();
}
input->GetBounds(this->Bounds);
}
return this->Bounds;
......
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