diff options
author | Justin Clark-Casey (justincc) | 2010-07-14 23:48:24 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-07-26 23:34:21 +0100 |
commit | fc76ce0f466c7dfa2328c08e590c86460b068140 (patch) | |
tree | 908c32802170e0e23c64fda0e3aa4ff9dddd5f57 /OpenSim/Data/SQLite | |
parent | fix previous media interact serverside checking. perform very basic serversi... (diff) | |
download | opensim-SC-fc76ce0f466c7dfa2328c08e590c86460b068140.zip opensim-SC-fc76ce0f466c7dfa2328c08e590c86460b068140.tar.gz opensim-SC-fc76ce0f466c7dfa2328c08e590c86460b068140.tar.bz2 opensim-SC-fc76ce0f466c7dfa2328c08e590c86460b068140.tar.xz |
fix bug where prim persistence would fail if media had never been set
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteRegionData.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 51f4cef..7acbd22 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs | |||
@@ -1919,14 +1919,17 @@ namespace OpenSim.Data.SQLite | |||
1919 | row["Texture"] = s.TextureEntry; | 1919 | row["Texture"] = s.TextureEntry; |
1920 | row["ExtraParams"] = s.ExtraParams; | 1920 | row["ExtraParams"] = s.ExtraParams; |
1921 | 1921 | ||
1922 | OSDArray meArray = new OSDArray(); | 1922 | if (null != s.Media) |
1923 | foreach (MediaEntry me in s.Media) | ||
1924 | { | 1923 | { |
1925 | OSD osd = (null == me ? new OSD() : me.GetOSD()); | 1924 | OSDArray meArray = new OSDArray(); |
1926 | meArray.Add(osd); | 1925 | foreach (MediaEntry me in s.Media) |
1926 | { | ||
1927 | OSD osd = (null == me ? new OSD() : me.GetOSD()); | ||
1928 | meArray.Add(osd); | ||
1929 | } | ||
1930 | |||
1931 | row["Media"] = OSDParser.SerializeLLSDXmlString(meArray); | ||
1927 | } | 1932 | } |
1928 | |||
1929 | row["Media"] = OSDParser.SerializeLLSDXmlString(meArray); | ||
1930 | } | 1933 | } |
1931 | 1934 | ||
1932 | /// <summary> | 1935 | /// <summary> |