]> OCCT Git - occt-copy.git/commitdiff
Fix for issue #0028365: Visualization, AIS_InteractiveContext - apply selection filte...
authornds <nds@opencascade.com>
Thu, 19 Jan 2017 12:17:41 +0000 (15:17 +0300)
committernds <nds@opencascade.com>
Thu, 19 Jan 2017 12:17:41 +0000 (15:17 +0300)
src/AIS/AIS_InteractiveContext_1.cxx

index e4d7a6f3ce8663e10ffaf44ca125a0a176c6ff05..23397077013cf1a47572d27b029f7751e3aa0b1d 100644 (file)
@@ -1202,7 +1202,10 @@ void AIS_InteractiveContext::AddOrRemoveSelected (const Handle(SelectMgr_EntityO
   if (HasOpenedContext())
     return myLocalContexts(myCurLocalIndex)->AddOrRemoveSelected (theOwner, theToUpdateViewer);
 
-  if (theOwner.IsNull() || !theOwner->HasSelectable() || !myFilters->IsOk(theOwner))
+  if (theOwner.IsNull() || !theOwner->HasSelectable())
+    return;
+
+  if (!myFilters->IsOk(theOwner) && !theOwner->IsSelected())
     return;
 
   AIS_SelectStatus aSelStat = mySelection->Select (theOwner);