diff options
| author | leyla_linden <none@none> | 2011-01-19 11:37:17 -0800 |
|---|---|---|
| committer | leyla_linden <none@none> | 2011-01-19 11:37:17 -0800 |
| commit | e9fd322febba11fa29a06c36df5f5d17f43a9da4 (patch) | |
| tree | de133a3ab827a4c4cf6aab0dc2eafc5259d89963 /indra | |
| parent | d51d294296ac0d53a46586c9868bb80e0468680b (diff) | |
SH-820 selectively enable/disable mesh preferences options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfloaterpreference.cpp | 7 |
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"); |
