1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +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 bugmaster
parent 189f85a3fd
commit c3ec36b69f

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);