summaryrefslogtreecommitdiff
path: root/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-06-22 15:06:33 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-06-22 15:06:33 -0400
commit7bf28da6634ad0acc362a7b50faaf0646027b3c5 (patch)
tree8e42de5e8fbf740088359991103a266cab843521 /indra/newview/llsurface.cpp
parent2da45d0237b9e4ba7ce7ec239fe1a2863c863917 (diff)
parent4caf151c5ad1e07f819bc8e5ab8eda584f41420b (diff)
merge
Diffstat (limited to 'indra/newview/llsurface.cpp')
-rw-r--r--indra/newview/llsurface.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp
index bccabe21a8..66df7dae3e 100644
--- a/indra/newview/llsurface.cpp
+++ b/indra/newview/llsurface.cpp
@@ -334,6 +334,17 @@ void LLSurface::setOriginGlobal(const LLVector3d &origin_global)
}
}
+void LLSurface::getNeighboringRegions( std::vector<LLViewerRegion*>& uniqueRegions )
+{
+ S32 i;
+ for (i = 0; i < 8; i++)
+ {
+ if ( mNeighbors[i] != NULL )
+ {
+ uniqueRegions.push_back( mNeighbors[i]->getRegion() );
+ }
+ }
+}
void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
{