mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 07:06:13 +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)
|
H_AUTO(InitRZWorldPacs)
|
||||||
|
|
||||||
releasePACS();
|
releasePACS();
|
||||||
// Init PACS
|
// Init PACS
|
||||||
std::string pacsRBankPath = CPath::lookup(PacsRBank, false);
|
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).
|
// Remove the primitive for all entitites (new PACS coming soon and need new primitives).
|
||||||
EntitiesMngr.removeCollision();
|
EntitiesMngr.removeCollision();
|
||||||
|
|
||||||
|
// Remove the instances (shapes).
|
||||||
|
EntitiesMngr.removeInstances();
|
||||||
|
|
||||||
|
|
||||||
// release collision primitives
|
// release collision primitives
|
||||||
if (IGCallbacks)
|
if (IGCallbacks)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue