FIRE-20112; Delay grid initialization until grid manager is ready.
parent
9d591aecc5
commit
969220f324
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -290,6 +290,7 @@ protected:
|
|||
|
||||
std::string mGrid;
|
||||
std::string mGridFile;
|
||||
std::string mStartupGrid;
|
||||
LLSD mGridList;
|
||||
// <AW opensim>
|
||||
LLSD mConnectedGrid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue