aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index b2cd249..a3ceecb 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2932,14 +2932,15 @@ namespace OpenSim.Region.Framework.Scenes
2932 //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) 2932 //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f))
2933 // The Physics Scene will send updates every 500 ms grep: m_physicsActor.SubscribeEvents( 2933 // The Physics Scene will send updates every 500 ms grep: m_physicsActor.SubscribeEvents(
2934 // as of this comment the interval is set in AddToPhysicalScene 2934 // as of this comment the interval is set in AddToPhysicalScene
2935 Animator.UpdateMovementAnimations(); 2935 if (Animator!=null)
2936 Animator.UpdateMovementAnimations();
2936 2937
2937 CollisionEventUpdate collisionData = (CollisionEventUpdate)e; 2938 CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
2938 Dictionary<uint, ContactPoint> coldata = collisionData.m_objCollisionList; 2939 Dictionary<uint, ContactPoint> coldata = collisionData.m_objCollisionList;
2939 2940
2940 CollisionPlane = Vector4.UnitW; 2941 CollisionPlane = Vector4.UnitW;
2941 2942
2942 if (coldata.Count != 0) 2943 if (coldata.Count != 0 && Animator != null)
2943 { 2944 {
2944 switch (Animator.CurrentMovementAnimation) 2945 switch (Animator.CurrentMovementAnimation)
2945 { 2946 {