fix for SH-4393: Interesting: viewer crash in LLViewerRegion::addNewObject
parent
d65243063c
commit
484f423014
|
|
@ -1303,6 +1303,16 @@ void LLViewerRegion::killObject(LLVOCacheEntry* entry, std::vector<LLDrawable*>&
|
|||
|
||||
LLViewerObject* LLViewerRegion::addNewObject(LLVOCacheEntry* entry)
|
||||
{
|
||||
if(!entry || !entry->getEntry())
|
||||
{
|
||||
if(entry)
|
||||
{
|
||||
mImpl->mVisibleEntries.erase(entry);
|
||||
entry->setState(LLVOCacheEntry::INACTIVE);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
LLViewerObject* obj = NULL;
|
||||
if(!entry->getEntry()->hasDrawable()) //not added to the rendering pipeline yet
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue