diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2012-10-25 18:20:36 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2012-10-25 18:20:36 -0600 |
commit | 09591242f90fa9b24a0be2aad02e91041ac0fcc7 (patch) | |
tree | 261bef129d890d5859256272b2adc03188424d73 | |
parent | 87097e546fa9e160264400f6d9d79d536abbb2fa (diff) |
avoid redundant object creation.
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index a1db1f7237..d41eee5926 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -338,8 +338,10 @@ LLViewerObject* LLViewerObjectList::processObjectUpdateFromCache(LLVOCacheEntry* objectp->updateRegion(regionp); // for LLVOAvatar } } - - //return TRUE; //already loaded. + else + { + return objectp; //already loaded. + } } bool justCreated = false; |