mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying edge in AIS_Shape
Fixed unexpected calling of PrsMgr_Presentation::Erase() from Graphic3d_Structure::SetVisual().
This commit is contained in:
@@ -73,10 +73,10 @@ Graphic3d_Structure::~Graphic3d_Structure()
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//function : Clear
|
||||
//function : clear
|
||||
//purpose :
|
||||
//=============================================================================
|
||||
void Graphic3d_Structure::Clear (const Standard_Boolean theWithDestruction)
|
||||
void Graphic3d_Structure::clear (const Standard_Boolean theWithDestruction)
|
||||
{
|
||||
if (IsDeleted()) return;
|
||||
|
||||
@@ -206,10 +206,10 @@ void Graphic3d_Structure::ResetDisplayPriority()
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//function : Erase
|
||||
//function : erase
|
||||
//purpose :
|
||||
//=============================================================================
|
||||
void Graphic3d_Structure::Erase()
|
||||
void Graphic3d_Structure::erase()
|
||||
{
|
||||
if (IsDeleted())
|
||||
{
|
||||
@@ -431,7 +431,7 @@ void Graphic3d_Structure::SetVisual (const Graphic3d_TypeOfStructure theVisual)
|
||||
}
|
||||
else
|
||||
{
|
||||
Erase();
|
||||
erase();
|
||||
myVisual = theVisual;
|
||||
SetComputeVisual (theVisual);
|
||||
Display();
|
||||
|
Reference in New Issue
Block a user