summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-02-08 18:25:35 -0500
committerJonathan Yap <none@none>2012-02-08 18:25:35 -0500
commit1f5c2c056ff2b660b053cf3a7344fdf1c5c15b0e (patch)
tree7eb50c8f70c31631864df94e26262c1452a28ad3 /indra
parent289d756ea86bd3898f41592146d8f549cd056846 (diff)
STORM-1808 Indicate ability to build
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/commands.xml2
-rwxr-xr-xindra/newview/llagent.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/commands.xml b/indra/newview/app_settings/commands.xml
index 1d1d39c786..16a7e0b314 100644
--- a/indra/newview/app_settings/commands.xml
+++ b/indra/newview/app_settings/commands.xml
@@ -37,6 +37,8 @@
tooltip_ref="Command_Build_Tooltip"
execute_function="Build.Toggle"
execute_parameters="build"
+ is_enabled_function="Agent.IsActionAllowed"
+ is_enabled_parameters="build"
is_running_function="Floater.IsOpen"
is_running_parameters="build"
/>
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index ab9b5ff436..f0add8ddc4 100755
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -171,7 +171,7 @@ bool LLAgent::isActionAllowed(const LLSD& sdname)
if (param == "build")
{
- retval = gAgent.canEditParcel();
+ retval = LLViewerParcelMgr::getInstance()->allowAgentBuild();
}
else if (param == "speak")
{