* Fix for Mantis: 0000224

afrisby
Teravus Ovares 2007-12-21 15:11:59 +00:00
parent ba9e0e5cab
commit 6a51c3addd
1 changed files with 7 additions and 1 deletions

View File

@ -60,13 +60,19 @@ namespace OpenSim.Region.Environment.Scenes
// MainLog.Instance.Verbose("CLIENT", "Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); // MainLog.Instance.Verbose("CLIENT", "Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)");
lock (ScenePresence.Animations.AnimsLLUUID) try
{ {
//Mantis: 0000224: 2755 - Enumeration Operation may not execute [immediate crash] (ODE/2750/WIN2003)
foreach (KeyValuePair<string, LLUUID> kp in ScenePresence.Animations.AnimsLLUUID) foreach (KeyValuePair<string, LLUUID> kp in ScenePresence.Animations.AnimsLLUUID)
{ {
AnimsNames.Add(kp.Value, kp.Key); AnimsNames.Add(kp.Value, kp.Key);
} }
} }
catch (System.InvalidOperationException)
{
OpenSim.Framework.Console.MainLog.Instance.Warn("AVATAR", "Unable to load animation names for an Avatar");
}
} }
} }
} }