aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteSimulationData.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-04-01 18:15:47 +0100
committerUbitUmarov2017-04-01 18:15:47 +0100
commit44993550a85f411e5ea88a889fb652744e2d3d1b (patch)
tree3a3313767f8a061e7e786b38b53aacfe594ad924 /OpenSim/Data/SQLite/SQLiteSimulationData.cs
parent store the physics inertia override in Mysql and add it to serializer. run p... (diff)
downloadopensim-SC-44993550a85f411e5ea88a889fb652744e2d3d1b.zip
opensim-SC-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.gz
opensim-SC-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.bz2
opensim-SC-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.xz
store the physics inertia override in SQlite
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index eec386f..19880de 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -1843,6 +1843,12 @@ namespace OpenSim.Data.SQLite
1843 if (vehicle != null) 1843 if (vehicle != null)
1844 prim.VehicleParams = vehicle; 1844 prim.VehicleParams = vehicle;
1845 } 1845 }
1846
1847 PhysicsInertiaData pdata = null;
1848 if (!(row["PhysInertia"] is DBNull) && row["PhysInertia"].ToString() != String.Empty)
1849 pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString());
1850 prim.PhysicsInertia = pdata;
1851
1846 return prim; 1852 return prim;
1847 } 1853 }
1848 1854
@@ -2266,6 +2272,11 @@ namespace OpenSim.Data.SQLite
2266 else 2272 else
2267 row["Vehicle"] = String.Empty; 2273 row["Vehicle"] = String.Empty;
2268 2274
2275 if (prim.PhysicsInertia != null)
2276 row["PhysInertia"] = prim.PhysicsInertia.ToXml2();
2277 else
2278 row["PhysInertia"] = String.Empty;
2279
2269 } 2280 }
2270 2281
2271 /// <summary> 2282 /// <summary>