]> OCCT Git - occt-copy.git/commitdiff
0030737: Visualization - implementing new selection schemes in context (revert filter...
authorsnn <sergey.nikonov@opencascade.com>
Wed, 17 Mar 2021 15:37:05 +0000 (18:37 +0300)
committersnn <sergey.nikonov@opencascade.com>
Wed, 17 Mar 2021 15:37:05 +0000 (18:37 +0300)
src/AIS/AIS_Selection.cxx

index 659b67d0d935038469450533b1ba8f23464b9f2a..38a634b60988d93cc27e6860a8858a05e9cec495 100644 (file)
@@ -205,7 +205,7 @@ void AIS_Selection::SelectOwners (const AIS_NArray1OfEntityOwner& thePickedOwner
         const Handle(SelectMgr_EntityOwner)& anOwner = aSelIter.Value();
         if (anOwner.IsNull()
         || !anOwner->HasSelectable()
-        || !theFilter->IsOk (anOwner, SelectMgr_FilterReaction_Select))
+        || !theFilter->IsOk (anOwner))
         {
           continue;
         }
@@ -231,7 +231,7 @@ AIS_SelectStatus AIS_Selection::appendOwner (const Handle(SelectMgr_EntityOwner)
 {
   if (theOwner.IsNull()
   || !theOwner->HasSelectable()
-  || !theFilter->IsOk (theOwner, SelectMgr_FilterReaction_Select))
+  || !theFilter->IsOk (theOwner))
   {
     return AIS_SS_NotDone;
   }
@@ -247,7 +247,7 @@ AIS_SelectStatus AIS_Selection::XOROwner (const Handle(SelectMgr_EntityOwner)& t
                                           const AIS_NListOfEntityOwner& thePreviousSelected,
                                           const Handle(SelectMgr_Filter)& theFilter)
 {
-  if (theOwner.IsNull() || !theOwner->HasSelectable() || !theFilter->IsOk (theOwner, SelectMgr_FilterReaction_Select))
+  if (theOwner.IsNull() || !theOwner->HasSelectable() || !theFilter->IsOk (theOwner))
     return AIS_SS_NotDone;
 
   if (thePreviousSelected.Contains (theOwner)) // was selected, should not be now