aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer
diff options
context:
space:
mode:
authormingchen2007-06-04 19:27:31 +0000
committermingchen2007-06-04 19:27:31 +0000
commit4fcb4fdec3d3cf2c63006d17accba66c10bdaa31 (patch)
tree91a9149113b451ae31943615e3c29def1ade1ccc /OpenSim/OpenSim.RegionServer
parentFixed Unhandled exception about avataranimations.xml file about xml element b... (diff)
downloadopensim-SC-4fcb4fdec3d3cf2c63006d17accba66c10bdaa31.zip
opensim-SC-4fcb4fdec3d3cf2c63006d17accba66c10bdaa31.tar.gz
opensim-SC-4fcb4fdec3d3cf2c63006d17accba66c10bdaa31.tar.bz2
opensim-SC-4fcb4fdec3d3cf2c63006d17accba66c10bdaa31.tar.xz
Fixed loading of Animations from XML file
*Still crashes the client. HelP!
Diffstat (limited to 'OpenSim/OpenSim.RegionServer')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs11
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();