diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs index 8fa9c42..2c1280d 100644 --- a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs +++ b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs | |||
@@ -20,15 +20,18 @@ namespace OpenSim.world | |||
20 | { | 20 | { |
21 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations"); | 21 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations"); |
22 | XmlTextReader reader = new XmlTextReader("data/avataranimations.xml"); | 22 | XmlTextReader reader = new XmlTextReader("data/avataranimations.xml"); |
23 | |||
23 | XmlDocument doc = new XmlDocument(); | 24 | XmlDocument doc = new XmlDocument(); |
24 | doc.Load(reader); | 25 | doc.Load(reader); |
25 | 26 | foreach (XmlNode nod in doc.DocumentElement.ChildNodes) | |
26 | foreach (XmlNode nod in doc.FirstChild.ChildNodes) | ||
27 | { | 27 | { |
28 | if (nod.Attributes["name"] != null) | 28 | |
29 | if ( nod.Attributes["name"] != null) | ||
29 | { | 30 | { |
30 | AnimsLLUUID.Add(nod.Attributes["name"].ToString(), new LLUUID(nod.Value)); | 31 | //Console.WriteLine("'" + nod.Attributes["name"].Value + "' - '" + nod.InnerText + "'"); |
32 | AnimsLLUUID.Add(nod.Attributes["name"].Value, nod.InnerText); | ||
31 | } | 33 | } |
34 | |||
32 | } | 35 | } |
33 | 36 | ||
34 | reader.Close(); | 37 | reader.Close(); |