Skip to content
Snippets Groups Projects
Commit e95b7efd authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

SL-16362 FIXED Viewer crashes if settings.xml file is missing

parent 029b41c0
No related branches found
No related tags found
1 merge request!83Merge Linden 6.6.7
...@@ -107,10 +107,14 @@ static bool handleRenderAvatarMouselookChanged(const LLSD& newvalue) ...@@ -107,10 +107,14 @@ static bool handleRenderAvatarMouselookChanged(const LLSD& newvalue)
static bool handleRenderFarClipChanged(const LLSD& newvalue) static bool handleRenderFarClipChanged(const LLSD& newvalue)
{ {
F32 draw_distance = (F32) newvalue.asReal(); if (LLStartUp::getStartupState() >= STATE_STARTED)
gAgentCamera.mDrawDistance = draw_distance; {
LLWorld::getInstance()->setLandFarClip(draw_distance); F32 draw_distance = (F32)newvalue.asReal();
return true; gAgentCamera.mDrawDistance = draw_distance;
LLWorld::getInstance()->setLandFarClip(draw_distance);
return true;
}
return false;
} }
static bool handleTerrainDetailChanged(const LLSD& newvalue) static bool handleTerrainDetailChanged(const LLSD& newvalue)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment