aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorMelanie2013-02-10 00:17:14 +0000
committerMelanie2013-02-10 00:17:14 +0000
commit069e587841465d8d041164929e27fc891b66a64a (patch)
treec37a59b837bfbac696850a7af2b8f20c520141ba /OpenSim/Data/MySQL
parentMerge branch 'master' into careminster (diff)
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-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.cs12
-rw-r--r--OpenSim/Data/MySQL/Resources/RegionStore.migrations12
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;
910ALTER TABLE prims ADD COLUMN DynAttrs TEXT; 910ALTER TABLE prims ADD COLUMN DynAttrs TEXT;
911 911
912COMMIT; 912COMMIT;
913
914:VERSION 47 #---------------- Extra physics params
915
916BEGIN;
917
918ALTER TABLE prims ADD COLUMN `PhysicsShapeType` tinyint(4) NOT NULL default '0';
919ALTER TABLE prims ADD COLUMN `Density` double NOT NULL default '1000';
920ALTER TABLE prims ADD COLUMN `GravityModifier` double NOT NULL default '1';
921ALTER TABLE prims ADD COLUMN `Friction` double NOT NULL default '0.6';
922ALTER TABLE prims ADD COLUMN `Restitution` double NOT NULL default '0.5';
923
924COMMIT;