summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorleyla_linden <none@none>2011-01-19 11:37:17 -0800
committerleyla_linden <none@none>2011-01-19 11:37:17 -0800
commite9fd322febba11fa29a06c36df5f5d17f43a9da4 (patch)
treede133a3ab827a4c4cf6aab0dc2eafc5259d89963 /indra/newview
parentd51d294296ac0d53a46586c9868bb80e0468680b (diff)
SH-820 selectively enable/disable mesh preferences options
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterpreference.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 456005f1fe..952643326a 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -656,6 +656,13 @@ void LLFloaterPreference::onOpen(const LLSD& key)
getChildView("maturity_desired_combobox")->setVisible( false);
}
+ bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled");
+
+ getChildView("UseLightShaders")->setVisible(enable_mesh);
+ getChildView("UseSSAO")->setVisible(enable_mesh);
+ getChildView("shadows_label")->setVisible(enable_mesh);
+ getChildView("ShadowDetail")->setVisible(enable_mesh);
+
if (LLStartUp::getStartupState() == STATE_STARTED)
{
mFavoritesRecordMayExist = gSavedPerAccountSettings.getBOOL("ShowFavoritesOnLogin");