From: rnv Date: Tue, 17 Feb 2009 13:19:37 +0000 (+0000) Subject: Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron). X-Git-Tag: V4_1_5rc1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9820264e7a786ef99e520d3a429aba5aaeb48a0;p=modules%2Fgui.git Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron). --- 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;