1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +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 committed by kgv
parent c23d6ec61f
commit b453701e1f

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();
}