Reduced text spam on exit by not trying to set all objects to a NULL region.

Reviewed by Richard.
meow-7.2.2
Leslie Linden 2011-09-07 12:46:37 -07:00
parent 6bb2b2cb99
commit c64bd7d5cb
1 changed files with 3 additions and 1 deletions

View File

@ -1254,7 +1254,8 @@ void LLViewerObjectList::removeDrawable(LLDrawable* drawablep)
BOOL LLViewerObjectList::killObject(LLViewerObject *objectp)
{
// Don't ever kill gAgentAvatarp, just force it to the agent's region
if (objectp == gAgentAvatarp)
// unless region is NULL which is assumed to mean you are logging out.
if ((objectp == gAgentAvatarp) && gAgent.getRegion())
{
objectp->setRegion(gAgent.getRegion());
return FALSE;
@ -1277,6 +1278,7 @@ BOOL LLViewerObjectList::killObject(LLViewerObject *objectp)
return TRUE;
}
return FALSE;
}