aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorUbitUmarov2017-04-01 18:15:47 +0100
committerUbitUmarov2017-04-01 18:15:47 +0100
commit44993550a85f411e5ea88a889fb652744e2d3d1b (patch)
tree3a3313767f8a061e7e786b38b53aacfe594ad924 /OpenSim/Data/MySQL
parent store the physics inertia override in Mysql and add it to serializer. run p... (diff)
downloadopensim-SC_OLD-44993550a85f411e5ea88a889fb652744e2d3d1b.zip
opensim-SC_OLD-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.gz
opensim-SC_OLD-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.bz2
opensim-SC_OLD-44993550a85f411e5ea88a889fb652744e2d3d1b.tar.xz
store the physics inertia override in SQlite
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 97a433f..5740b91 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -1452,13 +1452,10 @@ namespace OpenSim.Data.MySQL
1452 prim.VehicleParams = vehicle; 1452 prim.VehicleParams = vehicle;
1453 } 1453 }
1454 1454
1455 PhysicsInertiaData pdata; 1455 PhysicsInertiaData pdata = null;
1456 if (row["PhysInertia"].ToString() != String.Empty) 1456 if (row["PhysInertia"].ToString() != String.Empty)
1457 {
1458 pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString()); 1457 pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString());
1459 if (pdata != null) 1458 prim.PhysicsInertia = pdata;
1460 prim.PhysicsInertia = pdata;
1461 }
1462 1459
1463 return prim; 1460 return prim;
1464 } 1461 }