mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Make MoapModule ignore non-sl media texture data
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user