Utilizes old method to clean up tree items in GuiTreeViewCtrl to resolve guiEditor crashes

Updates probeManager to correctly utilize skylight idx to infer if a skylight is active, and set the SKYLIGHT_ONLY macro correctly, resolving erroneous behavior
Cleaned up some of the guiEditor initialization script to remove redundancy
Cleaned up tools modules loading script to remove redundancy
This commit is contained in:
Areloch 2019-09-18 01:41:57 -05:00
parent 9db95f4fb2
commit ff4c2d59fc
6 changed files with 155 additions and 167 deletions

View file

@ -1035,7 +1035,7 @@ void GuiTreeViewCtrl::_destroyTree()
{
Item *pFreeItem = mItems[ i ];
if( pFreeItem != NULL )
_destroyItem(pFreeItem);
delete pFreeItem;
}
mItems.clear();