FIRE-20112; Delay grid initialization until grid manager is ready.

meow-7.2.2
Nicky 2016-10-06 00:07:21 +02:00
parent 9d591aecc5
commit 969220f324
2 changed files with 15 additions and 0 deletions

View File

@ -193,6 +193,12 @@ void LLGridManager::initGrids()
{
initCmdLineGrids();
}
// <FS:ND> FIRE-20112 in case grid was set bt settings/cmd line, set it now
if( mStartupGrid.size() )
setGridChoice( mStartupGrid );
mStartupGrid = "";
// </FS:ND>
}
@ -1052,6 +1058,14 @@ void LLGridManager::setGridChoice(const std::string& grid)
return;
}
// <FS:ND> FIRE-20112 viewer is not properly initialized yet, store grid choice and call this method again later.
if( mGridList.size() == 0 )
{
mStartupGrid = grid;
return;
}
// </FS:ND>
// Set the grid choice based on a string.
// The string can be:
// - a grid label from the gGridInfo table

View File

@ -290,6 +290,7 @@ protected:
std::string mGrid;
std::string mGridFile;
std::string mStartupGrid;
LLSD mGridList;
// <AW opensim>
LLSD mConnectedGrid;