summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorleyla_linden <none@none>2011-01-26 17:02:11 -0800
committerleyla_linden <none@none>2011-01-26 17:02:11 -0800
commitf89b8c26854e362980e3f5c16c6b3a22c932c3f6 (patch)
treed31f19328839d2cd455a54477b5232f693964069 /indra/newview
parentae292e00bbd5612acbd092c1d045f491965e5cfa (diff)
SH-841 Hide physics parameters in build tools when connected
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp
index f1fd47f50e..3e2d903d58 100644
--- a/indra/newview/llpanelobject.cpp
+++ b/indra/newview/llpanelobject.cpp
@@ -1923,7 +1923,8 @@ void LLPanelObject::refresh()
mRootObject = NULL;
}
- bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled");
+ bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled") &&
+ !gAgent.getRegion()->getCapability("GetMesh").empty();
getChildView("label physicsshapetype")->setVisible(enable_mesh);
getChildView("Physics Shape Type Combo Ctrl")->setVisible(enable_mesh);