summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenufile.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-01-28 17:42:30 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-01-28 17:42:30 -0500
commit435e9de7f1d0ca25fc2e8f36b4be3265cf0357d7 (patch)
treef5ad9ba5bfb0fb4b1480a9c73eb050bca95a0d79 /indra/newview/llviewermenufile.cpp
parentc285dddcca63a901212e61335fba4429062a6c17 (diff)
parentad54a46ba2bc3886f9663bcaa4a6757fac733af7 (diff)
merge
Diffstat (limited to 'indra/newview/llviewermenufile.cpp')
-rw-r--r--indra/newview/llviewermenufile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp
index d0bb93d1b6..9ecb11d253 100644
--- a/indra/newview/llviewermenufile.cpp
+++ b/indra/newview/llviewermenufile.cpp
@@ -107,7 +107,9 @@ class LLMeshUploadVisible : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
- return LLViewerParcelMgr::getInstance()->allowAgentBuild() && !gAgent.getRegion()->getCapability("ObjectAdd").empty();
+ return gSavedSettings.getBOOL("MeshEnabled") &&
+ LLViewerParcelMgr::getInstance()->allowAgentBuild() &&
+ !gAgent.getRegion()->getCapability("ObjectAdd").empty();
}
};