summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-10-27 17:45:31 -0400
committerprep <prep@lindenlab.com>2011-10-27 17:45:31 -0400
commit94f430156adbc1d228d387319070088579163646 (patch)
tree1402d2fa3d792729802d5431afec3c92de022023 /indra/newview
parent92d6091538559e17f29a36b022ced7d781f469cb (diff)
Calls into pathing lib
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermenufile.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp
index ec4562d31a..8359667821 100644
--- a/indra/newview/llviewermenufile.cpp
+++ b/indra/newview/llviewermenufile.cpp
@@ -78,6 +78,7 @@
// system libraries
#include <boost/tokenizer.hpp>
+#include "LLPathingLib.h"
class LLBuildNavMesh : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
@@ -92,6 +93,17 @@ class LLFileUploadNavMesh : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
llinfos<<"ok"<<llendl;
+ LLPathingLib::initSystem();
+ if (LLPathingLib::getInstance() == NULL)
+ {
+ llinfos<<"ick"<<llendl;
+ }
+ else
+ {
+ llinfos<<"ok2"<<llendl;
+ LLPathingLib::getInstance()->testNavMeshGenerationWithLocalAsset();
+ }
+
return true;
}
};