diff options
author | Melanie | 2013-02-10 00:17:14 +0000 |
---|---|---|
committer | Melanie | 2013-02-10 00:17:14 +0000 |
commit | 069e587841465d8d041164929e27fc891b66a64a (patch) | |
tree | c37a59b837bfbac696850a7af2b8f20c520141ba /OpenSim/Data/MySQL | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-069e587841465d8d041164929e27fc891b66a64a.zip opensim-SC-069e587841465d8d041164929e27fc891b66a64a.tar.gz opensim-SC-069e587841465d8d041164929e27fc891b66a64a.tar.bz2 opensim-SC-069e587841465d8d041164929e27fc891b66a64a.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Data/MySQL/MySQLSimulationData.cs
OpenSim/Data/MySQL/Resources/RegionStore.migrations
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 12 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/Resources/RegionStore.migrations | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 30ae7a9..5320543 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -1727,12 +1727,6 @@ namespace OpenSim.Data.MySQL | |||
1727 | else | 1727 | else |
1728 | cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]); | 1728 | cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]); |
1729 | 1729 | ||
1730 | cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType); | ||
1731 | cmd.Parameters.AddWithValue("Density", (double)prim.Density); | ||
1732 | cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier); | ||
1733 | cmd.Parameters.AddWithValue("Friction", (double)prim.Friction); | ||
1734 | cmd.Parameters.AddWithValue("Restitution", (double)prim.Restitution); | ||
1735 | |||
1736 | if (prim.VehicleParams != null) | 1730 | if (prim.VehicleParams != null) |
1737 | cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2()); | 1731 | cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2()); |
1738 | else | 1732 | else |
@@ -1742,6 +1736,12 @@ namespace OpenSim.Data.MySQL | |||
1742 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); | 1736 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); |
1743 | else | 1737 | else |
1744 | cmd.Parameters.AddWithValue("DynAttrs", null); | 1738 | cmd.Parameters.AddWithValue("DynAttrs", null); |
1739 | |||
1740 | cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType); | ||
1741 | cmd.Parameters.AddWithValue("Density", (double)prim.Density); | ||
1742 | cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier); | ||
1743 | cmd.Parameters.AddWithValue("Friction", (double)prim.Friction); | ||
1744 | cmd.Parameters.AddWithValue("Restitution", (double)prim.Restitution); | ||
1745 | } | 1745 | } |
1746 | 1746 | ||
1747 | /// <summary> | 1747 | /// <summary> |
diff --git a/OpenSim/Data/MySQL/Resources/RegionStore.migrations b/OpenSim/Data/MySQL/Resources/RegionStore.migrations index 0be5587..bda1b6a 100644 --- a/OpenSim/Data/MySQL/Resources/RegionStore.migrations +++ b/OpenSim/Data/MySQL/Resources/RegionStore.migrations | |||
@@ -910,3 +910,15 @@ BEGIN; | |||
910 | ALTER TABLE prims ADD COLUMN DynAttrs TEXT; | 910 | ALTER TABLE prims ADD COLUMN DynAttrs TEXT; |
911 | 911 | ||
912 | COMMIT; | 912 | COMMIT; |
913 | |||
914 | :VERSION 47 #---------------- Extra physics params | ||
915 | |||
916 | BEGIN; | ||
917 | |||
918 | ALTER TABLE prims ADD COLUMN `PhysicsShapeType` tinyint(4) NOT NULL default '0'; | ||
919 | ALTER TABLE prims ADD COLUMN `Density` double NOT NULL default '1000'; | ||
920 | ALTER TABLE prims ADD COLUMN `GravityModifier` double NOT NULL default '1'; | ||
921 | ALTER TABLE prims ADD COLUMN `Friction` double NOT NULL default '0.6'; | ||
922 | ALTER TABLE prims ADD COLUMN `Restitution` double NOT NULL default '0.5'; | ||
923 | |||
924 | COMMIT; | ||