From 372df8597465493217e13ef7d0fb2a51237aebb4 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 31 Jul 2017 09:36:15 +0300 Subject: [PATCH] Issue #2226 Selecting the feature partition in the object browser takes too much time Redisplay after each owner selection takes this time. --- src/XGUI/XGUI_Displayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 6c4865bf8..b735f2a51 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -1582,7 +1582,7 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th NCollection_Map aPresentations = theShapesToBeSelected.Find(aParameterShape); if (aPresentations.Contains(anOwnerPresentation)) { - theContext->AddOrRemoveSelected(anOwner); + theContext->AddOrRemoveSelected(anOwner, Standard_False); anOwner->SetSelected (Standard_True); // collect selected presentations to do not select them if compsolid is selected if (!aSelectedPresentations.Contains(anOwnerPresentation)) @@ -1607,6 +1607,6 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th for (; anIt.More(); anIt.Next()) { if (aSelectedPresentations.Contains(anIt.Value())) continue; - theContext->AddOrRemoveSelected(anIt.Value()); + theContext->AddOrRemoveSelected(anIt.Value(), Standard_False); } } -- 2.39.2