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

0028061: Samples - Highlighting of any object with "Hidden On" option leads to crash in mfc Modeling

Graphic3d_Structure::Highlight() does not call UnHighlight() anymore.
This commit is contained in:
vpa
2016-11-09 17:55:51 +03:00
committed by apn
parent eca0539260
commit 424392e0d8
3 changed files with 27 additions and 18 deletions

View File

@@ -262,24 +262,6 @@ void Graphic3d_Structure::Highlight (const Handle(Graphic3d_HighlightStyle)& the
return;
}
// Highlight on already Highlighted structure.
if (myCStructure->highlight)
{
Aspect_TypeOfUpdate anUpdateMode = myStructureManager->UpdateMode();
if (anUpdateMode == Aspect_TOU_WAIT)
{
UnHighlight();
}
else
{
// To avoid call of method : Update()
// Not useful and can be costly.
myStructureManager->SetUpdateMode (Aspect_TOU_WAIT);
UnHighlight();
myStructureManager->SetUpdateMode (anUpdateMode);
}
}
SetDisplayPriority (Structure_MAX_PRIORITY - 1);
myCStructure->GraphicHighlight (theStyle, this);