summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindinglinksets.cpp
diff options
context:
space:
mode:
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)