summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-05-01 15:19:39 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-05-01 15:19:39 -0700
commit9eec646601d6ce903d41dc305364373dc0a18b74 (patch)
tree3bd4985ae4f9081b175fe8156145a565e0fcde88 /indra
parent84d8b320a2dff7a7d34e04d1f5c7fd38d148e5c7 (diff)
Removing another capability check that was occurring prior to the receipt of the listed capabilities.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpathfindingpathtool.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llpathfindingpathtool.cpp b/indra/newview/llpathfindingpathtool.cpp
index 8825f82f29..1e327a3ba7 100644
--- a/indra/newview/llpathfindingpathtool.cpp
+++ b/indra/newview/llpathfindingpathtool.cpp
@@ -27,10 +27,13 @@
#include "llviewerprecompiledheaders.h"
#include "llpathfindingpathtool.h"
+
+#include "llagent.h"
#include "llsingleton.h"
#include "lltool.h"
-#include "llviewerwindow.h"
#include "llviewercamera.h"
+#include "llviewerregion.h"
+#include "llviewerwindow.h"
#include "llpathfindingmanager.h"
#include "llpathinglib.h"
@@ -167,6 +170,10 @@ LLPathfindingPathTool::EPathStatus LLPathfindingPathTool::getPathStatus() const
{
status = kPathStatusNotImplemented;
}
+ else if ((gAgent.getRegion() != NULL) && !gAgent.getRegion()->capabilitiesReceived())
+ {
+ status = kPathStatusUnknown;
+ }
else if (!LLPathfindingManager::getInstance()->isPathfindingEnabledForCurrentRegion())
{
status = kPathStatusNotEnabled;