fix bug where prim persistence would fail if media had never been set
parent
c3ee451325
commit
aec3b33011
|
@ -1919,6 +1919,8 @@ namespace OpenSim.Data.SQLite
|
||||||
row["Texture"] = s.TextureEntry;
|
row["Texture"] = s.TextureEntry;
|
||||||
row["ExtraParams"] = s.ExtraParams;
|
row["ExtraParams"] = s.ExtraParams;
|
||||||
|
|
||||||
|
if (null != s.Media)
|
||||||
|
{
|
||||||
OSDArray meArray = new OSDArray();
|
OSDArray meArray = new OSDArray();
|
||||||
foreach (MediaEntry me in s.Media)
|
foreach (MediaEntry me in s.Media)
|
||||||
{
|
{
|
||||||
|
@ -1928,6 +1930,7 @@ namespace OpenSim.Data.SQLite
|
||||||
|
|
||||||
row["Media"] = OSDParser.SerializeLLSDXmlString(meArray);
|
row["Media"] = OSDParser.SerializeLLSDXmlString(meArray);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Persistently store a prim.
|
/// Persistently store a prim.
|
||||||
|
|
Loading…
Reference in New Issue