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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user