Do a cagent.Anims != null check in SP.CopyFrom()

iar_mods
Justin Clark-Casey (justincc) 2011-12-03 00:30:13 +00:00
parent 5ba8ca5662
commit 8185ce8b4a
1 changed files with 3 additions and 1 deletions

View File

@ -3195,6 +3195,8 @@ namespace OpenSim.Region.Framework.Scenes
}
catch { }
// FIXME: Why is this null check necessary? Where are the cases where we get a null Anims object?
if (cAgent.Anims != null)
Animator.Animations.FromArray(cAgent.Anims);
if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0)