From 37990da5f5ea85026462c20f097fa39e0c9d78ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Gon=C3=A7alves?= Date: Wed, 29 Mar 2017 13:38:22 +0200 Subject: [PATCH] Changed: Fix crash on Scenographic Editor --HG-- branch : compatibility-develop --- code/ryzom/client/src/continent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/ryzom/client/src/continent.cpp b/code/ryzom/client/src/continent.cpp index 65bf11de7..cf30aeaf6 100644 --- a/code/ryzom/client/src/continent.cpp +++ b/code/ryzom/client/src/continent.cpp @@ -485,6 +485,7 @@ void CContinent::select(const CVectorD &pos, NLMISC::IProgressCallback &progress { H_AUTO(InitRZWorldPacs) + releasePACS(); // Init PACS std::string pacsRBankPath = CPath::lookup(PacsRBank, false); @@ -931,6 +932,10 @@ void CContinent::unselect() // Remove the primitive for all entitites (new PACS coming soon and need new primitives). EntitiesMngr.removeCollision(); + // Remove the instances (shapes). + EntitiesMngr.removeInstances(); + + // release collision primitives if (IGCallbacks) {