1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

temporary patch to avoid deactivate selection on children after the parent's hiding

This commit is contained in:
alex
2019-10-15 14:59:45 +03:00
parent 05ac0c7d75
commit ba382e61db

View File

@@ -184,11 +184,14 @@ void SelectMgr_SelectionManager::Activate (const Handle(SelectMgr_SelectableObje
//================================================== //==================================================
void SelectMgr_SelectionManager::Deactivate (const Handle(SelectMgr_SelectableObject)& theObject, void SelectMgr_SelectionManager::Deactivate (const Handle(SelectMgr_SelectableObject)& theObject,
const Standard_Integer theMode) const Standard_Integer theMode)
{
if (theObject->ToPropagateVisualState())
{ {
for (PrsMgr_ListOfPresentableObjectsIter anChildrenIter(theObject->Children()); anChildrenIter.More(); anChildrenIter.Next()) for (PrsMgr_ListOfPresentableObjectsIter anChildrenIter(theObject->Children()); anChildrenIter.More(); anChildrenIter.Next())
{ {
Deactivate(Handle(SelectMgr_SelectableObject)::DownCast(anChildrenIter.Value()), theMode); Deactivate(Handle(SelectMgr_SelectableObject)::DownCast(anChildrenIter.Value()), theMode);
} }
}
if (!theObject->HasOwnPresentations()) if (!theObject->HasOwnPresentations())
{ {
return; return;