diff options
author | Todd Stinson <stinson@lindenlab.com> | 2011-12-16 18:11:43 -0800 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2011-12-16 18:11:43 -0800 |
commit | 1598724b462b062670a94353e397b092c1dbb598 (patch) | |
tree | a52dfb5f337e908b85c158f567ae778a25fe3ee4 /indra/newview/llviewermenufile.cpp | |
parent | b54b50b3da2db912b17aaa0f0314a519d9ded5aa (diff) |
Moving the call to initialize the LLPathingLib instance to the pathfinding console floater onOpen() callback.
Diffstat (limited to 'indra/newview/llviewermenufile.cpp')
-rw-r--r-- | indra/newview/llviewermenufile.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index b5df16566a..99d08087d4 100644 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -74,52 +74,10 @@ #include "lluuid.h"
#include "llvorbisencode.h"
#include "message.h"
-#include "llpathinglib.h"
-#include "llnavmeshstation.h"
// system libraries
#include <boost/tokenizer.hpp>
-//prep#
-class LLPathingTools : public view_listener_t, LLNavMeshDownloadObserver
-{
-
- bool handleEvent(const LLSD& userdata)
- {
- //make sure we have a pathing system
- if ( !LLPathingLib::getInstance() )
- {
- LLPathingLib::initSystem();
- }
- //prep# test remove
- //LLSD content;
- //LLPathingLib::getInstance()->extractNavMeshSrcFromLLSD( content );
- //return true;
- //prep# end test
- if ( LLPathingLib::getInstance() == NULL )
- {
- llinfos<<"No implementation of pathing library."<<llendl;
- }
- else
- {
- //make sure the region is essentially enabled for navmesh support
- std::string capability = "RetrieveNavMeshSrc";
- std::string url = gAgent.getRegion()->getCapability( capability );
- if ( !url.empty() )
- {
- llinfos<<"Region has required caps of type ["<<capability<<"]"<<llendl;
- LLNavMeshStation::getInstance()->setNavMeshDownloadURL( url );
- LLNavMeshStation::getInstance()->downloadNavMeshSrc( getObserverHandle() );
- }
- else
- {
- llinfos<<"Region has does not required caps of type ["<<capability<<"]"<<llendl;
- }
- }
- return true;
- }
-};
-
class LLFileEnableUpload : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
@@ -1310,7 +1268,5 @@ void init_menu_file() view_listener_t::addMenu(new LLMeshEnabled(), "File.MeshEnabled");
view_listener_t::addMenu(new LLMeshUploadVisible(), "File.VisibleUploadModel");
- //prep#
- view_listener_t::addCommit(new LLPathingTools(), "PathingTools.RetrieveSrc");
// "File.SaveTexture" moved to llpanelmaininventory so that it can be properly handled.
}
|