mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028527: Visualization, AIS_InteractiveContext - custom selection presentation is never removed from View
This commit is contained in:
@@ -2336,6 +2336,9 @@ void AIS_InteractiveContext::EraseGlobal (const Handle(AIS_InteractiveObject)& t
|
||||
clearDynamicHighlight();
|
||||
}
|
||||
|
||||
// make sure highlighting presentations are properly erased
|
||||
theIObj->ErasePresentations (false);
|
||||
|
||||
if (IsSelected (theIObj)
|
||||
&& aStatus->DisplayMode() != aDispMode)
|
||||
{
|
||||
@@ -2396,6 +2399,7 @@ void AIS_InteractiveContext::ClearGlobal (const Handle(AIS_InteractiveObject)& t
|
||||
unhighlightOwners (theIObj);
|
||||
|
||||
myMainPM->Erase (theIObj, -1);
|
||||
theIObj->ErasePresentations (true); // make sure highlighting presentations are properly erased
|
||||
|
||||
// Object removes from Detected sequence
|
||||
Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
|
Reference in New Issue
Block a user