Skip to content
Snippets Groups Projects
Commit 86f5c525 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot
Browse files

Merge topic 'release-vtkAssembly-GetBounds-adds-uninitialized-bounds' into release


8732680a Fix for BUG0013829: vtkAssembly::GetBounds adds bounds which are unintialized.

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarKen Martin <ken.martin@kitware.com>
Merge-request: !5337
parents 3768b398 8732680a
Branches
No related tags found
No related merge requests found
......@@ -369,7 +369,6 @@ double *vtkAssembly::GetBounds()
vtkProp3D* prop3D = static_cast<vtkProp3D *>(path->GetLastNode()->GetViewProp());
if (prop3D->GetVisibility() && prop3D->GetUseBounds())
{
propVisible = 1;
prop3D->PokeMatrix(path->GetLastNode()->GetMatrix());
const double* bounds = prop3D->GetBounds();
prop3D->PokeMatrix(nullptr);
......@@ -379,6 +378,8 @@ double *vtkAssembly::GetBounds()
{
continue;
}
// Only set the prop as visibile if atleast one prop has a valid bounds
propVisible = 1;
double bbox[24];
// fill out vertices of a bounding box
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment