store rotation axis locks in MySql and SQlite dbs ( others need to be updated also

This commit is contained in:
UbitUmarov
2015-10-20 18:08:04 +01:00
parent 52860a7d15
commit 3e25430e3a
4 changed files with 26 additions and 5 deletions

View File

@@ -625,4 +625,12 @@ ALTER TABLE `land` ADD COLUMN `SeeAVs` BOOLEAN NOT NULL DEFAULT TRUE;
ALTER TABLE `land` ADD COLUMN `AnyAVSounds` BOOLEAN NOT NULL DEFAULT TRUE;
ALTER TABLE `land` ADD COLUMN `GroupAVSounds` BOOLEAN NOT NULL DEFAULT TRUE;
COMMIT;
COMMIT;
:VERSION 32 #---- Rotation axis locks
BEGIN;
ALTER TABLE prims ADD COLUMN `RotationAxisLocks` tinyint(4) NOT NULL default '0';
COMMIT;

View File

@@ -1764,6 +1764,7 @@ namespace OpenSim.Data.SQLite
prim.PassCollisions = Convert.ToBoolean(row["PassCollisions"]);
prim.PassTouches = Convert.ToBoolean(row["PassTouches"]);
prim.RotationAxisLocks = Convert.ToByte(row["RotationAxisLocks"]);
SOPVehicle vehicle = null;
if (!(row["Vehicle"] is DBNull) && row["Vehicle"].ToString() != String.Empty)
@@ -2185,9 +2186,9 @@ namespace OpenSim.Data.SQLite
else
row["KeyframeMotion"] = new Byte[0];
row["PassTouches"] = prim.PassTouches;
row["PassCollisions"] = prim.PassCollisions;
row["RotationAxisLocks"] = prim.RotationAxisLocks;
if (prim.VehicleParams != null)
row["Vehicle"] = prim.VehicleParams.ToXml2();