From f9820264e7a786ef99e520d3a429aba5aaeb48a0 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 17 Feb 2009 13:19:37 +0000 Subject: [PATCH] Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron). --- src/VTKViewer/VTKViewer_Utilities.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 03d085813..db666dde9 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -119,7 +119,7 @@ ComputeVisiblePropBounds(vtkRenderer* theRenderer, aCollection->InitTraversal(); while (vtkActor* aProp = aCollection->GetNextActor()) { // if it's invisible, or has no geometry, we can skip the rest - if(aProp->GetVisibility() && aProp->GetMapper()){ + if(aProp->GetVisibility() && aProp->GetMapper() && vtkMath::AreBoundsInitialized(aProp->GetBounds()) > 0){ if(VTKViewer_Actor* anActor = VTKViewer_Actor::SafeDownCast(aProp)) if(anActor->IsInfinitive()) continue; -- 2.39.2