diff options
author | Justin Clark-Casey (justincc) | 2011-12-03 00:30:13 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-03 00:30:13 +0000 |
commit | 8185ce8b4afab459655f5cd362b2c6bbb98c28c3 (patch) | |
tree | 6b9b53dd775a198a531ca3f4bbe9497cf7679172 /OpenSim/Region/Framework | |
parent | Rename ScenePresenceAnimator.GetMovementAnimation() -> DetermineMovementAnima... (diff) | |
download | opensim-SC-8185ce8b4afab459655f5cd362b2c6bbb98c28c3.zip opensim-SC-8185ce8b4afab459655f5cd362b2c6bbb98c28c3.tar.gz opensim-SC-8185ce8b4afab459655f5cd362b2c6bbb98c28c3.tar.bz2 opensim-SC-8185ce8b4afab459655f5cd362b2c6bbb98c28c3.tar.xz |
Do a cagent.Anims != null check in SP.CopyFrom()
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index c517978..7156137 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3195,7 +3195,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3195 | } | 3195 | } |
3196 | catch { } | 3196 | catch { } |
3197 | 3197 | ||
3198 | Animator.Animations.FromArray(cAgent.Anims); | 3198 | // FIXME: Why is this null check necessary? Where are the cases where we get a null Anims object? |
3199 | if (cAgent.Anims != null) | ||
3200 | Animator.Animations.FromArray(cAgent.Anims); | ||
3199 | 3201 | ||
3200 | if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0) | 3202 | if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0) |
3201 | { | 3203 | { |