mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynamic highlighting
AIS_InteractiveContext::SetLocation() - update HilightMode instead of DisplayMode. PrsMgr_PresentationManager::UpdateHighlightTrsf() - fix accessing NULL presentation.
This commit is contained in:
@@ -1331,9 +1331,10 @@ void AIS_InteractiveContext::SetLocation (const Handle(AIS_InteractiveObject)& t
|
||||
// to its highlight structure immediately
|
||||
if (!myLastPicked.IsNull() && myLastPicked->IsSameSelectable (theIObj))
|
||||
{
|
||||
const Standard_Integer aHiMod = theIObj->HasHilightMode() ? theIObj->HilightMode() : 0;
|
||||
myLastPicked->UpdateHighlightTrsf (myMainVwr,
|
||||
myMainPM,
|
||||
theIObj->HasDisplayMode() ? theIObj->DisplayMode() : 0);
|
||||
aHiMod);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user