Disabled the ability to query neighboring regions for their navmeshes. We'll introduce a checkbox to the pathfinding floater and enable the code.

meow-7.2.2
prep 2012-02-13 16:47:43 -05:00
parent ec335c7007
commit 666bd487bd
1 changed files with 2 additions and 2 deletions

View File

@ -231,11 +231,11 @@ void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey)
LLViewerRegion* pCurrentRegion = gAgent.getRegion();
std::vector<LLViewerRegion*> regions;
regions.push_back( pCurrentRegion );
pCurrentRegion->getNeighboringRegions( regions );
//pCurrentRegion->getNeighboringRegions( regions );
std::vector<int> shift;
shift.push_back( CURRENT_REGION );
pCurrentRegion->getNeighboringRegionsStatus( shift );
//pCurrentRegion->getNeighboringRegionsStatus( shift );
//If the navmesh shift ops and the total region counts do not match - use the current region, only.
if ( shift.size() != regions.size() )