mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
store the physics inertia override in SQlite
This commit is contained in:
@@ -1843,6 +1843,12 @@ namespace OpenSim.Data.SQLite
|
||||
if (vehicle != null)
|
||||
prim.VehicleParams = vehicle;
|
||||
}
|
||||
|
||||
PhysicsInertiaData pdata = null;
|
||||
if (!(row["PhysInertia"] is DBNull) && row["PhysInertia"].ToString() != String.Empty)
|
||||
pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString());
|
||||
prim.PhysicsInertia = pdata;
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -2266,6 +2272,11 @@ namespace OpenSim.Data.SQLite
|
||||
else
|
||||
row["Vehicle"] = String.Empty;
|
||||
|
||||
if (prim.PhysicsInertia != null)
|
||||
row["PhysInertia"] = prim.PhysicsInertia.ToXml2();
|
||||
else
|
||||
row["PhysInertia"] = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user