Skip to content
Snippets Groups Projects
Commit bb48fae5 authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-786 - control avatar deletion

parent 07e925d2
No related branches found
No related tags found
No related merge requests found
...@@ -2969,9 +2969,11 @@ void LLViewerObject::unlinkControlAvatar() ...@@ -2969,9 +2969,11 @@ void LLViewerObject::unlinkControlAvatar()
if (isRootEdit()) if (isRootEdit())
{ {
// This will remove the entire linkset from the control avatar // This will remove the entire linkset from the control avatar
LLControlAvatar *av = mControlAvatar; if (mControlAvatar)
{
mControlAvatar->markForDeath();
mControlAvatar = NULL; mControlAvatar = NULL;
av->markForDeath(); }
} }
// For non-root prims, removing from the linkset will // For non-root prims, removing from the linkset will
// automatically remove the control avatar connection. // automatically remove the control avatar connection.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment