]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020500: EDF 1127 VISU: "Display" and "Display only" bug using python script
authordmv <dmv@opencascade.com>
Fri, 2 Oct 2009 08:52:49 +0000 (08:52 +0000)
committerdmv <dmv@opencascade.com>
Fri, 2 Oct 2009 08:52:49 +0000 (08:52 +0000)
src/VISU_I/VISU_ViewManager_i.cc

index 73a74c2e974768a76fb4443245890da85a2824a0..d7ba2e71cc7b931301a002558a415813dbac92c7 100644 (file)
@@ -302,9 +302,9 @@ namespace VISU {
          else
            aResActor->VisibilityOff();
        } else {
-         if(theDisplaing > eDisplay)
+         if(theDisplaing == eEraseAll || theDisplaing == eDisplayOnly)
            anVISUActor->VisibilityOff();
-         else if ( theDisplaing < eDisplay )
+         else if ( theDisplaing == eDisplayAll )
            anVISUActor->VisibilityOn();
        }
       }