more fix for SH-4552: Interesting: objects sometimes fail to load after teleport.
parent
816c86a3cb
commit
2b4dfefda2
|
|
@ -2097,7 +2097,7 @@ LLViewerRegion::eCacheUpdateResult LLViewerRegion::cacheFullUpdate(LLDataPackerB
|
|||
else //invisible
|
||||
{
|
||||
//copy some contents from old entry
|
||||
entry->moveTo(new_entry);
|
||||
entry->moveTo(new_entry, true);
|
||||
|
||||
//remove old entry
|
||||
killCacheEntry(entry);
|
||||
|
|
|
|||
|
|
@ -191,10 +191,10 @@ void LLVOCacheEntry::setOctreeEntry(LLViewerOctreeEntry* entry)
|
|||
LLViewerOctreeEntryData::setOctreeEntry(entry);
|
||||
}
|
||||
|
||||
void LLVOCacheEntry::moveTo(LLVOCacheEntry* new_entry)
|
||||
void LLVOCacheEntry::moveTo(LLVOCacheEntry* new_entry, bool no_entry_move)
|
||||
{
|
||||
//copy LLViewerOctreeEntry
|
||||
if(mEntry.notNull())
|
||||
if(mEntry.notNull() && !no_entry_move)
|
||||
{
|
||||
new_entry->setOctreeEntry(mEntry);
|
||||
mEntry = NULL;
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public:
|
|||
void recordHit();
|
||||
void recordDupe() { mDupeCount++; }
|
||||
|
||||
void moveTo(LLVOCacheEntry* new_entry); //copy variables
|
||||
void moveTo(LLVOCacheEntry* new_entry, bool no_entry_move = false); //copy variables
|
||||
/*virtual*/ void setOctreeEntry(LLViewerOctreeEntry* entry);
|
||||
|
||||
void setParentID(U32 id) {mParentID = id;}
|
||||
|
|
|
|||
Loading…
Reference in New Issue