From c2a7006413ea5e4a0bf7b8b75fe5afdb51e9a6e5 Mon Sep 17 00:00:00 2001 From: prep Date: Fri, 2 Mar 2012 11:28:49 -0500 Subject: path-356: purging any data from the pathinglib after a successfull teleport. --- indra/newview/llagent.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 657e464cbb..1132ee4ea8 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -3661,6 +3661,9 @@ void LLAgent::setTeleportState(ETeleportState state) // Let the interested parties know we've teleported. LLViewerParcelMgr::getInstance()->onTeleportFinished(false, getPositionGlobal()); + + //Since we teleported into a new region, we need to cleanup up any navmesh residuals + if ( LLPathingLib::getInstance() ) { LLPathingLib::getInstance()->cleanupResidual(); } break; default: -- cgit v1.2.3