1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026153: Draw Harness, ViewerTest - "verase" does not remove selection highlight for shaded object

This commit is contained in:
isk
2015-05-14 17:04:15 +03:00
committed by abv
parent a4eb991a8e
commit 46b15b8275

View File

@@ -2333,9 +2333,16 @@ void AIS_InteractiveContext::EraseGlobal (const Handle(AIS_InteractiveObject)& t
for (TColStd_ListIteratorOfListOfInteger aDispModeIter (aStatus->DisplayedModes()); aDispModeIter.More(); aDispModeIter.Next())
{
if (myMainPM->IsHighlighted (theIObj, aDispModeIter.Value()))
if (aStatus->IsHilighted())
{
myMainPM->Unhighlight (theIObj, aDispModeIter.Value());
if (IsCurrent (theIObj))
{
AddOrRemoveCurrentObject (theIObj, Standard_False);
}
else if (myMainPM->IsHighlighted (theIObj, aDispModeIter.Value()))
{
myMainPM->Unhighlight (theIObj, aDispModeIter.Value());
}
}
myMainPM->SetVisibility (theIObj, aDispModeIter.Value(), Standard_False);