]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid useless calculation when highlight is false
authorapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:14:22 +0000 (13:14 +0000)
committerapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:14:22 +0000 (13:14 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx

index e29785b0d0f4b77246a50fba0902da7c9e554184..acaef85ac1a7c2f44afe69b78d4c962c191f9d09 100644 (file)
@@ -839,13 +839,16 @@ VISU_GaussPtsAct
     return;
 
   myOutlineActor->SetVisibility(false);
-  myTextActor->SetVisibility(0);
-  myCursorPyramidSelected->SetVisibility(0);
-  myCursorPyramid->SetVisibility(0);
-  myCellActor->SetVisibility(0);
+  myTextActor->SetVisibility(false);
+  myCursorPyramidSelected->SetVisibility(false);
+  myCursorPyramid->SetVisibility(false);
+  myCellActor->SetVisibility(false);
   GetScalarBarCtrl()->SetIsMarked(false);
   GetScalarBarCtrl()->Update();
 
+  if(!theIsHighlight)
+    return;
+
   bool anIsVisible = GetVisibility();
 
   Selection_Mode aSelectionMode = mySelector->SelectionMode();