summaryrefslogtreecommitdiff
path: root/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-07-18 23:50:50 -0500
committerDave Parks <davep@lindenlab.com>2011-07-18 23:50:50 -0500
commit7ef1550fbb01acfb0cba0e849f1933462612784a (patch)
treedde820baa0134031d46b0c117ad34545d9e8cfe9 /indra/newview/llsurface.cpp
parent4dc0850da7469906e5ad052da71830b05005295b (diff)
parente8b71e0585ab126f9e77da93d6830a1a73a7aa92 (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)
{