fix bug where prim persistence would fail if media had never been set
parent
c3ee451325
commit
aec3b33011
|
@ -1919,14 +1919,17 @@ namespace OpenSim.Data.SQLite
|
||||||
row["Texture"] = s.TextureEntry;
|
row["Texture"] = s.TextureEntry;
|
||||||
row["ExtraParams"] = s.ExtraParams;
|
row["ExtraParams"] = s.ExtraParams;
|
||||||
|
|
||||||
OSDArray meArray = new OSDArray();
|
if (null != s.Media)
|
||||||
foreach (MediaEntry me in s.Media)
|
|
||||||
{
|
{
|
||||||
OSD osd = (null == me ? new OSD() : me.GetOSD());
|
OSDArray meArray = new OSDArray();
|
||||||
meArray.Add(osd);
|
foreach (MediaEntry me in s.Media)
|
||||||
|
{
|
||||||
|
OSD osd = (null == me ? new OSD() : me.GetOSD());
|
||||||
|
meArray.Add(osd);
|
||||||
|
}
|
||||||
|
|
||||||
|
row["Media"] = OSDParser.SerializeLLSDXmlString(meArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
row["Media"] = OSDParser.SerializeLLSDXmlString(meArray);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue