From ae87bb87d01660bc27090beabc1e7ea92ba1bb85 Mon Sep 17 00:00:00 2001 From: vro Date: Fri, 28 Feb 2020 15:37:44 +0300 Subject: [PATCH] 0031400: Application Framework, TPrsStd_AISPresentation - Ocaf selection mechanism doesn't allow multiple selection TPrsStd_AISPresentation::ActivateSelectionMode() uses Multiple enumeration for definition of the selection mode instead of GlobalOrLocal. --- src/TPrsStd/TPrsStd_AISPresentation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TPrsStd/TPrsStd_AISPresentation.cxx b/src/TPrsStd/TPrsStd_AISPresentation.cxx index 1c0140ffc9..2dbb051b67 100644 --- a/src/TPrsStd/TPrsStd_AISPresentation.cxx +++ b/src/TPrsStd/TPrsStd_AISPresentation.cxx @@ -1052,7 +1052,7 @@ void TPrsStd_AISPresentation::ActivateSelectionMode() } } if (!isActivated) - aContext->Activate(myAIS, aSelectionMode, Standard_False); + aContext->SetSelectionModeActive(myAIS, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Multiple); } } else @@ -1061,7 +1061,7 @@ void TPrsStd_AISPresentation::ActivateSelectionMode() { const Standard_Integer aSelectionMode = SelectionMode (iSelMode); aContext->SetSelectionModeActive (myAIS, aSelectionMode, Standard_True/*activate*/, - iSelMode == 1 ? AIS_SelectionModesConcurrency_Single : AIS_SelectionModesConcurrency_GlobalOrLocal); + iSelMode == 1 ? AIS_SelectionModesConcurrency_Single : AIS_SelectionModesConcurrency_Multiple); } } }