]> OCCT Git - occt-copy.git/commitdiff
Visualization, PrsMgr_Presentation - remove graphic structure before nullify [OCCT...
authorosa <osa@opencascade.com>
Fri, 4 Sep 2020 08:22:03 +0000 (11:22 +0300)
committerkgv <kgv@opencascade.com>
Wed, 23 Sep 2020 17:18:08 +0000 (20:18 +0300)
src/PrsMgr/PrsMgr_Presentation.cxx

index 17ff1c225eb2cbc3a6e8be48096109ff84b0ff5e..b3fe320fb1fda7c18bfe42ac1d1c26a311e7541e 100644 (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();
 }