summaryrefslogtreecommitdiff
path: root/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-08-04 09:12:08 -0400
committerOz Linden <oz@lindenlab.com>2011-08-04 09:12:08 -0400
commitca3cea390ca44e6e6c390b390e0ebdfafd2afa9e (patch)
tree005b934f87b6c5adc0a6f84ef6f12c67d606ce37 /indra/newview/llsurface.cpp
parent1d9fe077a64d36272b32ae0fb1888d2b25aa1d43 (diff)
parent5451af6cca43f296e1b5654ab3e611928929c1c9 (diff)
merge changes for storm-1537 : releasable mesh branch
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)
{