diff options
author | Oren Hurvitz | 2013-01-22 08:55:15 +0200 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-25 04:03:24 +0000 |
commit | 86802bcf937e19ea99c2f9b7bc757b4e9daf3d16 (patch) | |
tree | 6692d40a62a3fc12b7296744e8d35bc51f217590 /OpenSim/Data/SQLite | |
parent | Stopped storing dynamic attributes in the PrimShape (diff) | |
download | opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.zip opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.gz opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.bz2 opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.xz |
Store NULL in the 'DynAttrs' column if the prim doesn't have any dynamic attributes
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteSimulationData.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index fda7728..91fc704 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs | |||
@@ -2145,7 +2145,11 @@ namespace OpenSim.Data.SQLite | |||
2145 | row["VolumeDetect"] = 0; | 2145 | row["VolumeDetect"] = 0; |
2146 | 2146 | ||
2147 | row["MediaURL"] = prim.MediaUrl; | 2147 | row["MediaURL"] = prim.MediaUrl; |
2148 | row["DynAttrs"] = prim.DynAttrs.ToXml(); | 2148 | |
2149 | if (prim.DynAttrs.Count > 0) | ||
2150 | row["DynAttrs"] = prim.DynAttrs.ToXml(); | ||
2151 | else | ||
2152 | row["DynAttrs"] = null; | ||
2149 | } | 2153 | } |
2150 | 2154 | ||
2151 | /// <summary> | 2155 | /// <summary> |