From: nds Date: Thu, 19 Jan 2017 12:17:41 +0000 (+0300) Subject: Fix for issue #0028365: Visualization, AIS_InteractiveContext - apply selection filte... X-Git-Tag: NewGEOM_2.7.0~4 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9d84c361f5f524b80cbd272c44414d9ebef4ac84;p=occt-copy.git Fix for issue #0028365: Visualization, AIS_InteractiveContext - apply selection filter in AddOrRemoveSelected at Neutral point --- diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index e4d7a6f3ce..2339707701 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -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);