Path-643. Once the preferences panel is closed (either through ok or cancel), the pathing console rebuilds the gfx data.
parent
338adcfaa5
commit
7cc33ad6be
|
|
@ -93,7 +93,7 @@ public:
|
|||
|
||||
LLPathingLib::LLPLCharacterType getRenderHeatmapType() const;
|
||||
void setRenderHeatmapType(LLPathingLib::LLPLCharacterType pRenderHeatmapType);
|
||||
|
||||
void onRegionBoundaryCross();
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
|
@ -124,7 +124,7 @@ private:
|
|||
void onClearPathClicked();
|
||||
|
||||
void handleNavMeshZoneStatus(LLPathfindingNavMeshZone::ENavMeshZoneRequestStatus pNavMeshZoneRequestStatus);
|
||||
void onRegionBoundaryCross();
|
||||
|
||||
void onPathEvent();
|
||||
|
||||
void setDefaultInputs();
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
#include "llviewerthrottle.h"
|
||||
#include "llvotree.h"
|
||||
#include "llvosky.h"
|
||||
|
||||
#include "llfloaterpathfindingconsole.h"
|
||||
// linden library includes
|
||||
#include "llavatarnamecache.h"
|
||||
#include "llerror.h"
|
||||
|
|
@ -793,6 +793,13 @@ void LLFloaterPreference::cancel()
|
|||
{
|
||||
advanced_proxy_settings->cancel();
|
||||
}
|
||||
//Need to reload the navmesh if the pathing console is up
|
||||
LLHandle<LLFloaterPathfindingConsole> pathfindingConsoleHandle = LLFloaterPathfindingConsole::getInstanceHandle();
|
||||
if ( !pathfindingConsoleHandle.isDead() )
|
||||
{
|
||||
LLFloaterPathfindingConsole* pPathfindingConsole = pathfindingConsoleHandle.get();
|
||||
pPathfindingConsole->onRegionBoundaryCross();
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterPreference::onOpen(const LLSD& key)
|
||||
|
|
@ -958,6 +965,14 @@ void LLFloaterPreference::onBtnOK()
|
|||
}
|
||||
|
||||
LLPanelLogin::updateLocationCombo( false );
|
||||
//Need to reload the navmesh if the pathing console is up
|
||||
LLHandle<LLFloaterPathfindingConsole> pathfindingConsoleHandle = LLFloaterPathfindingConsole::getInstanceHandle();
|
||||
if ( !pathfindingConsoleHandle.isDead() )
|
||||
{
|
||||
LLFloaterPathfindingConsole* pPathfindingConsole = pathfindingConsoleHandle.get();
|
||||
pPathfindingConsole->onRegionBoundaryCross();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
Loading…
Reference in New Issue