diff options
author | Debi King (Dessie) <dessie@lindenlab.com> | 2011-08-22 17:18:34 -0400 |
---|---|---|
committer | Debi King (Dessie) <dessie@lindenlab.com> | 2011-08-22 17:18:34 -0400 |
commit | 015cf59c96a4613996fc34b898fe9751f27f9c8c (patch) | |
tree | 412a776e4bb8ae72960ea02d40ea7c98be1c1065 /indra/newview/llsurface.cpp | |
parent | f99cf295e1d7e297996d4ea32a2202273010d8a3 (diff) | |
parent | b73291e9bd6a706c5c8913f1c40bd8324f772c4a (diff) |
merged .hgtags
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) { |