Changed: Fix crash on Scenographic Editor

--HG--
branch : compatibility-develop
This commit is contained in:
Nuno Gonçalves 2017-03-29 13:38:22 +02:00
parent 2939beddba
commit 37990da5f5

View file

@ -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)
{