diff options
| author | Dave Parks <davep@lindenlab.com> | 2010-05-11 00:21:40 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2010-05-11 00:21:40 -0500 |
| commit | 8d6fb2dbc6ad9566903f6cd2e539d0abb62d8391 (patch) | |
| tree | 6c158d9f552e7e14b91ae7ede343b1a93650076d /indra/newview/llviewermenufile.cpp | |
| parent | e8067c6f8b6cb733c20aa0a002546298bfc88afa (diff) | |
Hide mesh UI when MeshEnabled is set to false.
Diffstat (limited to 'indra/newview/llviewermenufile.cpp')
| -rw-r--r-- | indra/newview/llviewermenufile.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index fb51344269..aca0090d7d 100644 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -101,6 +101,14 @@ class LLFileEnableUploadModel : public view_listener_t } }; +class LLMeshEnabled : public view_listener_t +{ + bool handleEvent(const LLSD& userdata) + { + return gSavedSettings.getBOOL("MeshEnabled"); + } +}; + LLMutex* LLFilePickerThread::sMutex = NULL; std::queue<LLFilePickerThread*> LLFilePickerThread::sDeadQ; @@ -1361,6 +1369,7 @@ void init_menu_file() view_listener_t::addEnable(new LLFileEnableUpload(), "File.EnableUpload"); view_listener_t::addEnable(new LLFileEnableUploadModel(), "File.EnableUploadModel"); - + view_listener_t::addMenu(new LLMeshEnabled(), "File.MeshEnabled"); + // "File.SaveTexture" moved to llpanelmaininventory so that it can be properly handled. } |
