mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
Changed: Fix crash on Scenographic Editor
--HG-- branch : compatibility-develop
This commit is contained in:
parent
2939beddba
commit
37990da5f5
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue