From: osa Date: Fri, 4 Sep 2020 08:22:03 +0000 (+0300) Subject: Visualization, PrsMgr_Presentation - remove graphic structure before nullify [OCCT... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=74e501a199d356d7a4e2632c773998a81b172502;p=occt-copy.git Visualization, PrsMgr_Presentation - remove graphic structure before nullify [OCCT 7.2.0 backport] --- diff --git a/src/PrsMgr/PrsMgr_Presentation.cxx b/src/PrsMgr/PrsMgr_Presentation.cxx index 17ff1c225e..b3fe320fb1 100644 --- a/src/PrsMgr/PrsMgr_Presentation.cxx +++ b/src/PrsMgr/PrsMgr_Presentation.cxx @@ -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(); }