Storing the slots for the registered signal listeners. Before, this was creating the artifact of crashing the Viewer on the second close of the pathfinding console.
parent
ead79432fb
commit
6c9561c882
|
|
@ -168,7 +168,7 @@ void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey)
|
|||
{
|
||||
if (!mNavMeshZoneSlot.connected())
|
||||
{
|
||||
mNavMeshZone.registerNavMeshZoneListener(boost::bind(&LLFloaterPathfindingConsole::onNavMeshZoneCB, this, _1));
|
||||
mNavMeshZoneSlot = mNavMeshZone.registerNavMeshZoneListener(boost::bind(&LLFloaterPathfindingConsole::onNavMeshZoneCB, this, _1));
|
||||
}
|
||||
|
||||
mNavMeshZone.setCurrentRegionAsCenter();
|
||||
|
|
@ -246,7 +246,7 @@ void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey)
|
|||
|
||||
if (!mAgentStateSlot.connected())
|
||||
{
|
||||
LLPathfindingManager::getInstance()->registerAgentStateListener(boost::bind(&LLFloaterPathfindingConsole::onAgentStateCB, this, _1));
|
||||
mAgentStateSlot = LLPathfindingManager::getInstance()->registerAgentStateListener(boost::bind(&LLFloaterPathfindingConsole::onAgentStateCB, this, _1));
|
||||
}
|
||||
|
||||
setAgentState(LLPathfindingManager::getInstance()->getAgentState());
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ void LLFloaterPathfindingLinksets::onOpen(const LLSD& pKey)
|
|||
|
||||
if (!mAgentStateSlot.connected())
|
||||
{
|
||||
LLPathfindingManager::getInstance()->registerAgentStateListener(boost::bind(&LLFloaterPathfindingLinksets::onAgentStateCB, this, _1));
|
||||
mAgentStateSlot = LLPathfindingManager::getInstance()->registerAgentStateListener(boost::bind(&LLFloaterPathfindingLinksets::onAgentStateCB, this, _1));
|
||||
}
|
||||
|
||||
if (!mSelectionUpdateSlot.connected())
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void LLPathfindingNavMeshZone::refresh()
|
|||
LLPathfindingManager *pathfindingManagerInstance = LLPathfindingManager::getInstance();
|
||||
if (!mNavMeshSlot.connected())
|
||||
{
|
||||
pathfindingManagerInstance->registerNavMeshListenerForCurrentRegion(boost::bind(&LLPathfindingNavMeshZone::handleNavMesh, this, _1, _2, _3, _4));
|
||||
mNavMeshSlot = pathfindingManagerInstance->registerNavMeshListenerForCurrentRegion(boost::bind(&LLPathfindingNavMeshZone::handleNavMesh, this, _1, _2, _3, _4));
|
||||
}
|
||||
|
||||
pathfindingManagerInstance->requestGetNavMeshForCurrentRegion();
|
||||
|
|
|
|||
Loading…
Reference in New Issue