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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user