mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0030516: Visualization - Pointer to an OpenGl_Structure is deleted and accessed later after PrsMgr_Presentation::Highlight()
Do not set IsForHighlight flag for already displayed presentation.
This commit is contained in:
@@ -83,13 +83,12 @@ void PrsMgr_Presentation::display (const Standard_Boolean theIsHighlight)
|
|||||||
{
|
{
|
||||||
if (!base_type::IsDisplayed())
|
if (!base_type::IsDisplayed())
|
||||||
{
|
{
|
||||||
base_type::SetIsForHighlight (theIsHighlight);
|
base_type::SetIsForHighlight (theIsHighlight); // optimization - disable frustum culling for this presentation
|
||||||
base_type::Display();
|
base_type::Display();
|
||||||
}
|
}
|
||||||
else if (!base_type::IsVisible())
|
else if (!base_type::IsVisible())
|
||||||
{
|
{
|
||||||
base_type::SetVisible (Standard_True);
|
base_type::SetVisible (Standard_True);
|
||||||
base_type::SetIsForHighlight (theIsHighlight);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user