diff options
author | Tofu Buzzard <no-email> | 2011-01-30 10:39:02 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-01-30 10:39:02 -0800 |
commit | 489a01181da4f599eb4d0520636278be3ceac2bc (patch) | |
tree | 11e55a7c3dcbbf2383ea395b342e4257a7a2524b /indra/newview/llfloatertools.cpp | |
parent | 139dddda8f416782d69f39b22c2665c4a196877a (diff) | |
parent | fe253e6ec6f77a7967cadd6efd76b2fbbef4e2da (diff) |
merge
Diffstat (limited to 'indra/newview/llfloatertools.cpp')
-rw-r--r-- | indra/newview/llfloatertools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 49e24f8e3d..c9b99d83ff 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -32,6 +32,7 @@ #include "llcoord.h" //#include "llgl.h" +#include "llagent.h" #include "llagentcamera.h" #include "llbutton.h" #include "llcheckboxctrl.h" @@ -463,7 +464,8 @@ void LLFloaterTools::refresh() childSetEnabled("linked_set_cost", have_selection); childSetEnabled("object_cost", have_selection); - bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled"); + bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled") && + !gAgent.getRegion()->getCapability("GetMesh").empty(); getChildView("linked_set_count")->setVisible(enable_mesh); getChildView("linked_set_cost")->setVisible(enable_mesh); |