From fde0fc149127424c09223f49ed4dbdf627ca0ce4 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 9 Feb 2006 13:14:22 +0000 Subject: [PATCH] To avoid useless calculation when highlight is false --- src/OBJECT/VISU_GaussPtsAct.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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(); -- 2.39.2