Attempt to catch animation fubar on region crossing that causes client hang. Mantis 319.
parent
c3594ba7d1
commit
288c4f4a44
|
@ -1010,8 +1010,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void SetMovementAnimation(LLUUID anim, int seq)
|
protected void SetMovementAnimation(LLUUID anim, int seq)
|
||||||
{
|
{
|
||||||
if (m_animations[0] != anim)
|
try
|
||||||
{
|
{
|
||||||
|
if (m_animations[0] != anim)
|
||||||
|
{
|
||||||
|
m_animations[0] = anim;
|
||||||
|
m_animationSeqs[0] = seq;
|
||||||
|
SendAnimPack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
MainLog.Instance.Warn("AVATAR", "SetMovementAnimation for avatar failed. Attempting recovery...");
|
||||||
m_animations[0] = anim;
|
m_animations[0] = anim;
|
||||||
m_animationSeqs[0] = seq;
|
m_animationSeqs[0] = seq;
|
||||||
SendAnimPack();
|
SendAnimPack();
|
||||||
|
|
Loading…
Reference in New Issue