diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-09-20 11:40:30 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-09-20 11:40:30 -0600 |
commit | ba4f64ed7ad64deeed5f7109f33c796bae0c4423 (patch) | |
tree | 96b78f3536ff026c8f4f2949eed1fd7948423314 /indra/newview/llviewerregion.cpp | |
parent | 52118862ba0946da3e4cfc558c3f457b0e6d0b2c (diff) |
fix for SH-4430: Interesting: Light objects behind you are not loaded at login.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-x | indra/newview/llviewerregion.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index abead17d6f..985f5a0a1f 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -963,14 +963,16 @@ void LLViewerRegion::removeActiveCacheEntry(LLVOCacheEntry* entry, LLDrawable* d entry->setState(LLVOCacheEntry::INACTIVE); } -void LLViewerRegion::addVisibleGroup(LLviewerOctreeGroup* group) +bool LLViewerRegion::addVisibleGroup(LLviewerOctreeGroup* group) { if(mDead || group->isEmpty()) { - return; + return false; } - group->setVisible(); + mImpl->mVisibleGroups.insert(group); + + return true; } U32 LLViewerRegion::getNumOfVisibleGroups() const |