summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-10-25 18:20:36 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-10-25 18:20:36 -0600
commit09591242f90fa9b24a0be2aad02e91041ac0fcc7 (patch)
tree261bef129d890d5859256272b2adc03188424d73 /indra/newview
parent87097e546fa9e160264400f6d9d79d536abbb2fa (diff)
avoid redundant object creation.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerobjectlist.cpp6
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;