diff options
author | Aura Linden <aura@lindenlab.com> | 2012-08-17 08:07:15 -0700 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2012-08-17 08:07:15 -0700 |
commit | efdcf045b064335aa180f03bae58916af19e2169 (patch) | |
tree | 4ca0be04bf1688b728b40be0d6b4221956127918 /indra/newview/llsurface.cpp | |
parent | 56298eed3d8ae586ab2ae4c7b8dcf53eeede7394 (diff) | |
parent | 7204593ec3f6fca63c32bcb8cdcf9c356165d24e (diff) |
Merged in from viewer-development.
Diffstat (limited to 'indra/newview/llsurface.cpp')
-rw-r--r-- | indra/newview/llsurface.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp index 230e871b49..f64a72a616 100644 --- a/indra/newview/llsurface.cpp +++ b/indra/newview/llsurface.cpp @@ -347,6 +347,19 @@ void LLSurface::getNeighboringRegions( std::vector<LLViewerRegion*>& uniqueRegio } } + +void LLSurface::getNeighboringRegionsStatus( std::vector<S32>& regions ) +{ + S32 i; + for (i = 0; i < 8; i++) + { + if ( mNeighbors[i] != NULL ) + { + regions.push_back( i ); + } + } +} + void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction) { S32 i; |