summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-03-29 17:54:55 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-03-29 17:54:55 -0600
commitda02b9f69471baa407188e2921b5c56c9b8d9415 (patch)
treeebfd0dab9cfcad275f896b84369db400633da460 /indra
parent51e5997bd6f7f7d66a5843cf1d0b749b143460a8 (diff)
save cache file when first login to a region.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerregion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index ed67d50dfd..64cf33a9eb 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -442,6 +442,10 @@ void LLViewerRegion::loadObjectCache()
if(LLVOCache::hasInstance())
{
LLVOCache::getInstance()->readFromCache(mHandle, mImpl->mCacheID, mImpl->mCacheMap) ;
+ if (mImpl->mCacheMap.empty())
+ {
+ mCacheDirty = TRUE;
+ }
}
}