parent
4d6441c0db
commit
4fcb4fdec3
|
@ -20,15 +20,18 @@ namespace OpenSim.world
|
||||||
{
|
{
|
||||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations");
|
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations");
|
||||||
XmlTextReader reader = new XmlTextReader("data/avataranimations.xml");
|
XmlTextReader reader = new XmlTextReader("data/avataranimations.xml");
|
||||||
|
|
||||||
XmlDocument doc = new XmlDocument();
|
XmlDocument doc = new XmlDocument();
|
||||||
doc.Load(reader);
|
doc.Load(reader);
|
||||||
|
foreach (XmlNode nod in doc.DocumentElement.ChildNodes)
|
||||||
foreach (XmlNode nod in doc.FirstChild.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();
|
reader.Close();
|
||||||
|
|
Loading…
Reference in New Issue