merge
commit
9af840bcd4
|
|
@ -891,17 +891,21 @@ void LLFloaterPathfindingConsole::setAgentState(LLPathfindingManager::EAgentStat
|
|||
void LLFloaterPathfindingConsole::switchIntoTestPathMode()
|
||||
{
|
||||
llassert(mPathfindingToolset != NULL);
|
||||
llassert(mSavedToolset == NULL);
|
||||
mSavedToolset = LLToolMgr::getInstance()->getCurrentToolset();
|
||||
LLToolMgr::getInstance()->setCurrentToolset(mPathfindingToolset);
|
||||
LLToolMgr *toolMgrInstance = LLToolMgr::getInstance();
|
||||
if (toolMgrInstance->getCurrentToolset() != mPathfindingToolset)
|
||||
{
|
||||
mSavedToolset = toolMgrInstance->getCurrentToolset();
|
||||
toolMgrInstance->setCurrentToolset(mPathfindingToolset);
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterPathfindingConsole::switchOutOfTestPathMode()
|
||||
{
|
||||
llassert(mPathfindingToolset != NULL);
|
||||
if (mSavedToolset != NULL)
|
||||
LLToolMgr *toolMgrInstance = LLToolMgr::getInstance();
|
||||
if (toolMgrInstance->getCurrentToolset() == mPathfindingToolset)
|
||||
{
|
||||
LLToolMgr::getInstance()->setCurrentToolset(mSavedToolset);
|
||||
toolMgrInstance->setCurrentToolset(mSavedToolset);
|
||||
mSavedToolset = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include "llviewerwindow.h"
|
||||
#include "llviewercamera.h"
|
||||
#include "llpathfindingmanager.h"
|
||||
#include "llpathinglib.h"
|
||||
#include "LLPathingLib.h"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "llsingleton.h"
|
||||
#include "lltool.h"
|
||||
#include "llpathinglib.h"
|
||||
#include "LLPathingLib.h"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
|
@ -60,8 +60,6 @@ public:
|
|||
kCharacterTypeD
|
||||
} ECharacterType;
|
||||
|
||||
typedef
|
||||
|
||||
LLPathfindingPathTool();
|
||||
virtual ~LLPathfindingPathTool();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue