Thanks Melanie for a patch to stop sending unnecessary animation updates (bug #1239).

0.6.0-stable
Jeff Ames 2008-05-12 09:07:07 +00:00
parent dc67264f6d
commit b34d5716a8
1 changed files with 3 additions and 1 deletions

View File

@ -1226,6 +1226,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
m_animations.Add(Animations.AnimsLLUUID["STAND"]); m_animations.Add(Animations.AnimsLLUUID["STAND"]);
m_animationSeqs.Add(1); m_animationSeqs.Add(1);
SendAnimPack();
} }
else else
{ {
@ -1235,6 +1236,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
m_animations[0] = animID; m_animations[0] = animID;
m_animationSeqs[0] = m_controllingClient.NextAnimationSequenceNumber; m_animationSeqs[0] = m_controllingClient.NextAnimationSequenceNumber;
SendAnimPack();
} }
} }
catch catch
@ -1242,10 +1244,10 @@ namespace OpenSim.Region.Environment.Scenes
m_log.Warn("[AVATAR]: SetMovementAnimation for avatar failed. Attempting recovery..."); m_log.Warn("[AVATAR]: SetMovementAnimation for avatar failed. Attempting recovery...");
m_animations[0] = animID; m_animations[0] = animID;
m_animationSeqs[0] = m_controllingClient.NextAnimationSequenceNumber; m_animationSeqs[0] = m_controllingClient.NextAnimationSequenceNumber;
}
}
SendAnimPack(); SendAnimPack();
} }
}
}
/// <summary> /// <summary>
/// Set the first known animation in the given list as the movement animation /// Set the first known animation in the given list as the movement animation