]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2226 Selecting the feature partition in the object browser takes too much...
authornds <nds@opencascade.com>
Mon, 31 Jul 2017 06:36:15 +0000 (09:36 +0300)
committernds <nds@opencascade.com>
Mon, 31 Jul 2017 06:36:15 +0000 (09:36 +0300)
Redisplay after each owner selection takes this time.

src/XGUI/XGUI_Displayer.cpp

index 6c4865bf8741f973c97497f8f3fb77ceb069ab9b..b735f2a51accd2ae8fc1a4993f1d90dae80f2b80 100644 (file)
@@ -1582,7 +1582,7 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th
           NCollection_Map<Handle(AIS_InteractiveObject)> 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);
   }
 }