1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

Visualization, PrsMgr_Presentation - remove graphic structure before nullify [OCCT 7.2.0 backport]

This commit is contained in:
osa
2020-09-04 11:22:03 +03:00
parent 56c8a853a4
commit 74e501a199

View File

@@ -110,6 +110,7 @@ void PrsMgr_Presentation::Erase()
// Disconnect other structures
myStructure->DisconnectAll (Graphic3d_TOC_DESCENDANT);
// Clear groups and remove graphic structure
myStructure->Graphic3d_Structure::Remove();
myStructure.Nullify();
}