* Fixes mantis 4416. Animator is dereferenced on logout

mysql-performance
Teravus Ovares (Dan Olivares) 2009-12-05 13:01:21 -05:00
parent c0f3a4c833
commit c4b6010fb3
2 changed files with 7 additions and 3 deletions

View File

@ -2932,6 +2932,7 @@ namespace OpenSim.Region.Framework.Scenes
//if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f))
// The Physics Scene will send updates every 500 ms grep: m_physicsActor.SubscribeEvents(
// as of this comment the interval is set in AddToPhysicalScene
if (Animator!=null)
Animator.UpdateMovementAnimations();
CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
@ -2939,7 +2940,7 @@ namespace OpenSim.Region.Framework.Scenes
CollisionPlane = Vector4.UnitW;
if (coldata.Count != 0)
if (coldata.Count != 0 && Animator != null)
{
switch (Animator.CurrentMovementAnimation)
{

View File

@ -1220,8 +1220,11 @@ namespace OpenSim.Region.Physics.OdePlugin
public void SendCollisions()
{
if (m_eventsubscription > m_requestedUpdateFrequency)
{
if (CollisionEventsThisFrame != null)
{
base.SendCollisionUpdate(CollisionEventsThisFrame);
}
CollisionEventsThisFrame = new CollisionEventUpdate();
m_eventsubscription = 0;
}