1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

Fix for issue #0028365: Visualization, AIS_InteractiveContext - apply selection filter in AddOrRemoveSelected at Neutral point

This commit is contained in:
nds
2017-01-18 15:38:29 +03:00
parent 7c49995584
commit d486ae29c5

View File

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