]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron).
authorrnv <rnv@opencascade.com>
Tue, 17 Feb 2009 13:19:37 +0000 (13:19 +0000)
committerrnv <rnv@opencascade.com>
Tue, 17 Feb 2009 13:19:37 +0000 (13:19 +0000)
src/VTKViewer/VTKViewer_Utilities.cxx

index 03d085813444b47ae74dbf872b5f352adedbe61f..db666dde917219326e160de2886ab9da12d76d71 100755 (executable)
@@ -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;