mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Fixed loading of Animations from XML file
*Still crashes the client. HelP!
This commit is contained in:
@@ -20,15 +20,18 @@ namespace OpenSim.world
|
||||
{
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations");
|
||||
XmlTextReader reader = new XmlTextReader("data/avataranimations.xml");
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load(reader);
|
||||
|
||||
foreach (XmlNode nod in doc.FirstChild.ChildNodes)
|
||||
foreach (XmlNode nod in doc.DocumentElement.ChildNodes)
|
||||
{
|
||||
if (nod.Attributes["name"] != null)
|
||||
|
||||
if ( nod.Attributes["name"] != null)
|
||||
{
|
||||
AnimsLLUUID.Add(nod.Attributes["name"].ToString(), new LLUUID(nod.Value));
|
||||
//Console.WriteLine("'" + nod.Attributes["name"].Value + "' - '" + nod.InnerText + "'");
|
||||
AnimsLLUUID.Add(nod.Attributes["name"].Value, nod.InnerText);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
reader.Close();
|
||||
|
||||
Reference in New Issue
Block a user