summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-09-20 11:40:30 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-09-20 11:40:30 -0600
commitba4f64ed7ad64deeed5f7109f33c796bae0c4423 (patch)
tree96b78f3536ff026c8f4f2949eed1fd7948423314 /indra/newview/llviewerregion.cpp
parent52118862ba0946da3e4cfc558c3f457b0e6d0b2c (diff)
fix for SH-4430: Interesting: Light objects behind you are not loaded at login.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-xindra/newview/llviewerregion.cpp8
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