summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2012-06-11 17:46:39 -0400
committerprep <prep@lindenlab.com>2012-06-11 17:46:39 -0400
commit2400b8a651e5aec599c2132d3cf9c12b78b21d83 (patch)
treeeb3b8d3c0d6b85fc0bdd0db91f87c35b8df011f1 /indra/newview/llviewerregion.cpp
parent9252ad10fd28e98157137addde7df3ad883c9948 (diff)
WIP:path-703 Adding icon to slurl bar to indicate if dynamic pathfinding is enabled or disbled.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rw-r--r--indra/newview/llviewerregion.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index 243231c65a..a7617b1028 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -1151,6 +1151,7 @@ void LLViewerRegion::getInfo(LLSD& info)
void LLViewerRegion::getSimulatorFeatures(LLSD& sim_features)
{
sim_features = mSimulatorFeatures;
+
}
void LLViewerRegion::setSimulatorFeatures(const LLSD& sim_features)
@@ -1836,4 +1837,9 @@ bool LLViewerRegion::meshRezEnabled() const
mSimulatorFeatures["MeshRezEnabled"].asBoolean());
}
+bool LLViewerRegion::dynamicPathfindingEnabled() const
+{
+ return ( mSimulatorFeatures.has("DynamicPathfindingEnabled") &&
+ mSimulatorFeatures["DynamicPathfindingEnabled"].asBoolean());
+}