EXT-7446 Spatial Partition Crash. reviewed by Richard.
parent
c77efc92e3
commit
abb607a65e
|
|
@ -4928,6 +4928,11 @@ void LLViewerObject::setIncludeInSearch(bool include_in_search)
|
|||
|
||||
void LLViewerObject::setRegion(LLViewerRegion *regionp)
|
||||
{
|
||||
if (!regionp)
|
||||
{
|
||||
llwarns << "viewer object set region to NULL" << llendl;
|
||||
}
|
||||
|
||||
mLatestRecvPacketID = 0;
|
||||
mRegionp = regionp;
|
||||
|
||||
|
|
|
|||
|
|
@ -894,10 +894,10 @@ void LLViewerObjectList::removeDrawable(LLDrawable* drawablep)
|
|||
|
||||
BOOL LLViewerObjectList::killObject(LLViewerObject *objectp)
|
||||
{
|
||||
// Don't ever kill gAgentAvatarp, just mark it as null region instead.
|
||||
// Don't ever kill gAgentAvatarp, just force it to the agent's region
|
||||
if (objectp == gAgentAvatarp)
|
||||
{
|
||||
objectp->setRegion(NULL);
|
||||
objectp->setRegion(gAgent.getRegion());
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue