Make MoapModule ignore non-sl media texture data

This commit is contained in:
Justin Clark-Casey (justincc)
2010-07-27 18:59:05 +01:00
parent 931c108277
commit ac542a907b

View File

@@ -200,8 +200,16 @@ namespace OpenSim.Region.CoreModules.Media.Moap
using (StringReader sr = new StringReader(part.Shape.MediaRaw))
{
using (XmlTextReader xtr = new XmlTextReader(sr))
{
xtr.ReadStartElement("osmedia");
{
xtr.MoveToContent();
string type = xtr.GetAttribute("type");
//m_log.DebugFormat("[MOAP]: Loaded media texture entry with type {0}", type);
if (type != "sl")
return;
xtr.ReadStartElement("osmedia");
OSDArray osdMeArray = (OSDArray)OSDParser.DeserializeLLSDXml(xtr.ReadInnerXml());