Make MoapModule ignore non-sl media texture data

prebuild-update
Justin Clark-Casey (justincc) 2010-07-27 18:59:05 +01:00
parent 931c108277
commit ac542a907b
1 changed files with 10 additions and 2 deletions

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());