From: apo Date: Thu, 9 Feb 2006 13:14:22 +0000 (+0000) Subject: To avoid useless calculation when highlight is false X-Git-Tag: mergeto_trunk_13Mar06~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fde0fc149127424c09223f49ed4dbdf627ca0ce4;p=modules%2Fvisu.git To avoid useless calculation when highlight is false --- diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index e29785b0..acaef85a 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -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();