aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2013-02-07 03:40:48 +0000
committerMelanie2013-02-07 03:40:48 +0000
commit6aa876a83b08390ab057eb012fd2c730010f79d8 (patch)
treedd041d7adf33ea827f535337710e302acb1ba812
parentMerge branch 'master' into careminster (diff)
downloadopensim-SC-6aa876a83b08390ab057eb012fd2c730010f79d8.zip
opensim-SC-6aa876a83b08390ab057eb012fd2c730010f79d8.tar.gz
opensim-SC-6aa876a83b08390ab057eb012fd2c730010f79d8.tar.bz2
opensim-SC-6aa876a83b08390ab057eb012fd2c730010f79d8.tar.xz
Rename Bounciness to Restitution
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs4
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
6 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 3fab27a..30ae7a9 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -1345,7 +1345,7 @@ namespace OpenSim.Data.MySQL
1345 prim.Density = (float)(double)row["Density"]; 1345 prim.Density = (float)(double)row["Density"];
1346 prim.GravityModifier = (float)(double)row["GravityModifier"]; 1346 prim.GravityModifier = (float)(double)row["GravityModifier"];
1347 prim.Friction = (float)(double)row["Friction"]; 1347 prim.Friction = (float)(double)row["Friction"];
1348 prim.Bounciness = (float)(double)row["Restitution"]; 1348 prim.Restitution = (float)(double)row["Restitution"];
1349 1349
1350 SOPVehicle vehicle = null; 1350 SOPVehicle vehicle = null;
1351 1351
@@ -1731,7 +1731,7 @@ namespace OpenSim.Data.MySQL
1731 cmd.Parameters.AddWithValue("Density", (double)prim.Density); 1731 cmd.Parameters.AddWithValue("Density", (double)prim.Density);
1732 cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier); 1732 cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier);
1733 cmd.Parameters.AddWithValue("Friction", (double)prim.Friction); 1733 cmd.Parameters.AddWithValue("Friction", (double)prim.Friction);
1734 cmd.Parameters.AddWithValue("Restitution", (double)prim.Bounciness); 1734 cmd.Parameters.AddWithValue("Restitution", (double)prim.Restitution);
1735 1735
1736 if (prim.VehicleParams != null) 1736 if (prim.VehicleParams != null)
1737 cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2()); 1737 cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2());
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index 83347e2..d7d4708 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -1316,7 +1316,7 @@ namespace OpenSim.Region.ClientStack.Linden
1316 object_data["PhysicsShapeType"] = obj.PhysicsShapeType; 1316 object_data["PhysicsShapeType"] = obj.PhysicsShapeType;
1317 object_data["Density"] = obj.Density; 1317 object_data["Density"] = obj.Density;
1318 object_data["Friction"] = obj.Friction; 1318 object_data["Friction"] = obj.Friction;
1319 object_data["Restitution"] = obj.Bounciness; 1319 object_data["Restitution"] = obj.Restitution;
1320 object_data["GravityMultiplier"] = obj.GravityModifier; 1320 object_data["GravityMultiplier"] = obj.GravityModifier;
1321 1321
1322 resp[uuid.ToString()] = object_data; 1322 resp[uuid.ToString()] = object_data;
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 0a39ded..f1fe6e1 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -2654,7 +2654,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2654 byte physshapetype = part.PhysicsShapeType; 2654 byte physshapetype = part.PhysicsShapeType;
2655 float density = part.Density; 2655 float density = part.Density;
2656 float friction = part.Friction; 2656 float friction = part.Friction;
2657 float bounce = part.Bounciness; 2657 float bounce = part.Restitution;
2658 float gravmod = part.GravityModifier; 2658 float gravmod = part.GravityModifier;
2659 2659
2660 eq.partPhysicsProperties(localid, physshapetype, density, friction, bounce, gravmod,AgentId); 2660 eq.partPhysicsProperties(localid, physshapetype, density, friction, bounce, gravmod,AgentId);
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 05b69c1..415a82b 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1736,7 +1736,7 @@ namespace OpenSim.Region.Framework.Scenes
1736 } 1736 }
1737 } 1737 }
1738 1738
1739 public float Bounciness 1739 public float Restitution
1740 { 1740 {
1741 get { return m_bounce; } 1741 get { return m_bounce; }
1742 set 1742 set
@@ -4494,8 +4494,8 @@ namespace OpenSim.Region.Framework.Scenes
4494 GravityModifier = physdata.GravitationModifier; 4494 GravityModifier = physdata.GravitationModifier;
4495 if(Friction != physdata.Friction) 4495 if(Friction != physdata.Friction)
4496 Friction = physdata.Friction; 4496 Friction = physdata.Friction;
4497 if(Bounciness != physdata.Bounce) 4497 if(Restitution != physdata.Bounce)
4498 Bounciness = physdata.Bounce; 4498 Restitution = physdata.Bounce;
4499 } 4499 }
4500 /// <summary> 4500 /// <summary>
4501 /// Update the flags on this prim. This covers properties such as phantom, physics and temporary. 4501 /// Update the flags on this prim. This covers properties such as phantom, physics and temporary.
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index 5c37c07..ce4fb40 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -634,7 +634,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
634 634
635 private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader) 635 private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader)
636 { 636 {
637 obj.Bounciness = reader.ReadElementContentAsFloat("Bounce", String.Empty); 637 obj.Restitution = reader.ReadElementContentAsFloat("Bounce", String.Empty);
638 } 638 }
639 639
640 private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader) 640 private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader)
@@ -1377,8 +1377,8 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1377 writer.WriteElementString("Density", sop.Density.ToString().ToLower()); 1377 writer.WriteElementString("Density", sop.Density.ToString().ToLower());
1378 if (sop.Friction != 0.6f) 1378 if (sop.Friction != 0.6f)
1379 writer.WriteElementString("Friction", sop.Friction.ToString().ToLower()); 1379 writer.WriteElementString("Friction", sop.Friction.ToString().ToLower());
1380 if (sop.Bounciness != 0.5f) 1380 if (sop.Restitution != 0.5f)
1381 writer.WriteElementString("Bounce", sop.Bounciness.ToString().ToLower()); 1381 writer.WriteElementString("Bounce", sop.Restitution.ToString().ToLower());
1382 if (sop.GravityModifier != 1.0f) 1382 if (sop.GravityModifier != 1.0f)
1383 writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower()); 1383 writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower());
1384 WriteVector(writer, "CameraEyeOffset", sop.GetCameraEyeOffset()); 1384 WriteVector(writer, "CameraEyeOffset", sop.GetCameraEyeOffset());
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 8be39a7..19214ec 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7801,7 +7801,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7801 physdata.PhysShapeType = (PhysShapeType)part.PhysicsShapeType; 7801 physdata.PhysShapeType = (PhysShapeType)part.PhysicsShapeType;
7802 physdata.Density = part.Density; 7802 physdata.Density = part.Density;
7803 physdata.Friction = part.Friction; 7803 physdata.Friction = part.Friction;
7804 physdata.Bounce = part.Bounciness; 7804 physdata.Bounce = part.Restitution;
7805 physdata.GravitationModifier = part.GravityModifier; 7805 physdata.GravitationModifier = part.GravityModifier;
7806 7806
7807 if ((material_bits & (int)ScriptBaseClass.DENSITY) != 0) 7807 if ((material_bits & (int)ScriptBaseClass.DENSITY) != 0)
@@ -8194,7 +8194,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8194 8194
8195 ExtraPhysicsData physdata = new ExtraPhysicsData(); 8195 ExtraPhysicsData physdata = new ExtraPhysicsData();
8196 physdata.Density = part.Density; 8196 physdata.Density = part.Density;
8197 physdata.Bounce = part.Bounciness; 8197 physdata.Bounce = part.Restitution;
8198 physdata.GravitationModifier = part.GravityModifier; 8198 physdata.GravitationModifier = part.GravityModifier;
8199 physdata.PhysShapeType = (PhysShapeType)shape_type; 8199 physdata.PhysShapeType = (PhysShapeType)shape_type;
8200 8200