]> 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:00 +0000 (08:52 +0000)
committerdmv <dmv@opencascade.com>
Fri, 2 Oct 2009 08:52:00 +0000 (08:52 +0000)
src/VISU_I/VISU_ViewManager_i.cc

index a5790828cb6ee5e3d96e116f03d36e3bbd681a19..0bc32345878ea84cd9e60b52587437417965c0e6 100644 (file)
@@ -303,9 +303,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();
        }
       }