summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindinglinksets.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-18 16:55:15 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-18 16:55:15 -0800
commitf88a8f6f46d9b4e9e628a910e941787d327adf5d (patch)
tree9b3c87d5ad1ea8d2db3d0dbbe43779e779f4b12e /indra/newview/llfloaterpathfindinglinksets.cpp
parentfe18dda3df1c5061ac0b956bfebc261c45467738 (diff)
PATH-226: Implementing a check for the multiple names of the ObjectNavMeshProperties service until the new service name is fully deployed.
Diffstat (limited to 'indra/newview/llfloaterpathfindinglinksets.cpp')
-rw-r--r--indra/newview/llfloaterpathfindinglinksets.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpathfindinglinksets.cpp b/indra/newview/llfloaterpathfindinglinksets.cpp
index 16711190cd..60c5365ade 100644
--- a/indra/newview/llfloaterpathfindinglinksets.cpp
+++ b/indra/newview/llfloaterpathfindinglinksets.cpp
@@ -769,15 +769,31 @@ std::string LLFloaterPathfindingLinksets::getRegionName() const
std::string LLFloaterPathfindingLinksets::getCapabilityURL() const
{
+#ifdef XXX_STINSON_REGION_CAP_RENAME
std::string navmeshDataURL("");
LLViewerRegion* region = gAgent.getRegion();
if (region != NULL)
{
- navmeshDataURL = region->getCapability("ObjectNavmesh");
+ navmeshDataURL = region->getCapability("ObjectNavMeshProperties");
+ if (navmeshDataURL.empty())
+ {
+ navmeshDataURL = region->getCapability("ObjectNavmesh");
+ }
+ }
+
+ return navmeshDataURL;
+#else // XXX_STINSON_REGION_CAP_RENAME
+ std::string navmeshDataURL("");
+
+ LLViewerRegion* region = gAgent.getRegion();
+ if (region != NULL)
+ {
+ navmeshDataURL = region->getCapability("ObjectNavMeshProperties");
}
return navmeshDataURL;
+#endif // XXX_STINSON_REGION_CAP_RENAME
}
void LLFloaterPathfindingLinksets::setFetchState(EFetchState pFetchState)