aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
index 7afeeec..81e4449 100644
--- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
+++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
@@ -200,8 +200,16 @@ namespace OpenSim.Region.CoreModules.Media.Moap
200 using (StringReader sr = new StringReader(part.Shape.MediaRaw)) 200 using (StringReader sr = new StringReader(part.Shape.MediaRaw))
201 { 201 {
202 using (XmlTextReader xtr = new XmlTextReader(sr)) 202 using (XmlTextReader xtr = new XmlTextReader(sr))
203 { 203 {
204 xtr.ReadStartElement("osmedia"); 204 xtr.MoveToContent();
205
206 string type = xtr.GetAttribute("type");
207 //m_log.DebugFormat("[MOAP]: Loaded media texture entry with type {0}", type);
208
209 if (type != "sl")
210 return;
211
212 xtr.ReadStartElement("osmedia");
205 213
206 OSDArray osdMeArray = (OSDArray)OSDParser.DeserializeLLSDXml(xtr.ReadInnerXml()); 214 OSDArray osdMeArray = (OSDArray)OSDParser.DeserializeLLSDXml(xtr.ReadInnerXml());
207 215