diff options
| author | prep linden <prep@lindenlab.com> | 2011-06-22 13:36:21 -0400 |
|---|---|---|
| committer | prep linden <prep@lindenlab.com> | 2011-06-22 13:36:21 -0400 |
| commit | 4caf151c5ad1e07f819bc8e5ab8eda584f41420b (patch) | |
| tree | 0491b4ab6f4fece3790f2b22f06fba5f99c2e5d0 /indra/newview/llsurface.cpp | |
| parent | e029683826623de6c112d6f50ead6e5d93cc98c9 (diff) | |
WIP for SH-1791
Diffstat (limited to 'indra/newview/llsurface.cpp')
| -rw-r--r-- | indra/newview/llsurface.cpp | 11 |
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) { |
