1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0024466: Visualization - PrsMgr_Presentation3d::Erase() now leads to incomplete destruction of Graphic3d_Structure

This commit is contained in:
kgv 2013-12-15 16:25:16 +04:00
parent 4e7bb26301
commit 5396d9ca17

View File

@ -72,6 +72,7 @@ void PrsMgr_Presentation3d::Erase ()
{ {
// Erase structure from structure manager // Erase structure from structure manager
myStructure->Erase(); myStructure->Erase();
myStructure->Clear();
// Disconnect other structures // Disconnect other structures
myStructure->DisconnectAll (Graphic3d_TOC_DESCENDANT); myStructure->DisconnectAll (Graphic3d_TOC_DESCENDANT);
// Clear groups and remove graphic structure // Clear groups and remove graphic structure