summaryrefslogtreecommitdiff
path: root/indra/newview/llnavmeshstation.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-23 18:27:10 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-23 18:27:10 -0800
commit3b4d841ee254186d881490cfadbdfbac6dcdf6ad (patch)
tree6c9f5270613250d5939fb762b06c7c5509a9ab1c /indra/newview/llnavmeshstation.cpp
parent3f330d2902aaab3c62ebd0c830fce61c6f1e4524 (diff)
Introducing a hacky way to get some reporting on the downloading status of the navmesh into the console. This needs to be seriously refactored.
Diffstat (limited to 'indra/newview/llnavmeshstation.cpp')
-rw-r--r--indra/newview/llnavmeshstation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llnavmeshstation.cpp b/indra/newview/llnavmeshstation.cpp
index bb08f00f40..48f54649f8 100644
--- a/indra/newview/llnavmeshstation.cpp
+++ b/indra/newview/llnavmeshstation.cpp
@@ -31,10 +31,13 @@
#include "llagent.h"
#include "llviewerregion.h"
#include "llsdutil.h"
+#include "llfloaterpathfindingconsole.h"
+
//===============================================================================
LLNavMeshStation::LLNavMeshStation()
{
}
+
//===============================================================================
class LLNavMeshUploadResponder : public LLCurl::Responder
{
@@ -98,7 +101,6 @@ public:
void result( const LLSD& content )
{
- llinfos<<"Content received"<<llendl;
//TODO# some sanity checking
if ( content.has("error") )
{
@@ -115,10 +117,12 @@ public:
{
const LLSD::Binary& stuff = content["navmesh_data"].asBinary();
LLPathingLib::getInstance()->extractNavMeshSrcFromLLSD( stuff );
+ pObserver->getPathfindingConsole()->setHasNavMeshReceived();
}
else
{
llwarns<<"no mesh data "<<llendl;
+ pObserver->getPathfindingConsole()->setHasNoNavMesh();
}
}
}