mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027621: Highlighting with color remains visible when shape is erased.
This commit is contained in:
@@ -2410,6 +2410,18 @@ void AIS_InteractiveContext::EraseGlobal (const Handle(AIS_InteractiveObject)& t
|
||||
myMainPM->SetVisibility (theIObj, aDispModeIter.Value(), Standard_False);
|
||||
}
|
||||
|
||||
if (aStatus->IsHilighted()
|
||||
&& theIObj->HasHilightMode())
|
||||
{
|
||||
myMainPM->Unhighlight (theIObj, aDispMode);
|
||||
}
|
||||
|
||||
if (!myLastPicked.IsNull()
|
||||
&& myLastPicked->Selectable() == theIObj)
|
||||
{
|
||||
myMainPM->ClearImmediateDraw();
|
||||
}
|
||||
|
||||
if (IsSelected (theIObj)
|
||||
&& !aStatus->IsDModeIn (aDispMode))
|
||||
{
|
||||
@@ -2478,6 +2490,12 @@ void AIS_InteractiveContext::ClearGlobal (const Handle(AIS_InteractiveObject)& t
|
||||
myMainPM->Clear (theIObj, aDispModeIter.Value());
|
||||
}
|
||||
|
||||
if (aStatus->IsHilighted()
|
||||
&& theIObj->HasHilightMode())
|
||||
{
|
||||
myMainPM->Unhighlight (theIObj, theIObj->HilightMode());
|
||||
}
|
||||
|
||||
// Object removes from Detected sequence
|
||||
for(Standard_Integer aDetIter = 1; aDetIter < myAISDetectedSeq.Length(); ++aDetIter)
|
||||
{
|
||||
|
Reference in New Issue
Block a user