diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 8528edc..0d2da03 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1729,7 +1729,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1729 | } | 1729 | } |
1730 | } | 1730 | } |
1731 | 1731 | ||
1732 | public float Bounciness | 1732 | public float Restitution |
1733 | { | 1733 | { |
1734 | get { return m_bounce; } | 1734 | get { return m_bounce; } |
1735 | set | 1735 | set |
@@ -4493,8 +4493,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4493 | GravityModifier = physdata.GravitationModifier; | 4493 | GravityModifier = physdata.GravitationModifier; |
4494 | if(Friction != physdata.Friction) | 4494 | if(Friction != physdata.Friction) |
4495 | Friction = physdata.Friction; | 4495 | Friction = physdata.Friction; |
4496 | if(Bounciness != physdata.Bounce) | 4496 | if(Restitution != physdata.Bounce) |
4497 | Bounciness = physdata.Bounce; | 4497 | Restitution = physdata.Bounce; |
4498 | } | 4498 | } |
4499 | /// <summary> | 4499 | /// <summary> |
4500 | /// Update the flags on this prim. This covers properties such as phantom, physics and temporary. | 4500 | /// 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 123c158..2984782 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -633,7 +633,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
633 | 633 | ||
634 | private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader) | 634 | private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader) |
635 | { | 635 | { |
636 | obj.Bounciness = reader.ReadElementContentAsFloat("Bounce", String.Empty); | 636 | obj.Restitution = reader.ReadElementContentAsFloat("Bounce", String.Empty); |
637 | } | 637 | } |
638 | 638 | ||
639 | private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader) | 639 | private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader) |
@@ -1363,8 +1363,8 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1363 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); | 1363 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); |
1364 | if (sop.Friction != 0.6f) | 1364 | if (sop.Friction != 0.6f) |
1365 | writer.WriteElementString("Friction", sop.Friction.ToString().ToLower()); | 1365 | writer.WriteElementString("Friction", sop.Friction.ToString().ToLower()); |
1366 | if (sop.Bounciness != 0.5f) | 1366 | if (sop.Restitution != 0.5f) |
1367 | writer.WriteElementString("Bounce", sop.Bounciness.ToString().ToLower()); | 1367 | writer.WriteElementString("Bounce", sop.Restitution.ToString().ToLower()); |
1368 | if (sop.GravityModifier != 1.0f) | 1368 | if (sop.GravityModifier != 1.0f) |
1369 | writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower()); | 1369 | writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower()); |
1370 | WriteVector(writer, "CameraEyeOffset", sop.GetCameraEyeOffset()); | 1370 | WriteVector(writer, "CameraEyeOffset", sop.GetCameraEyeOffset()); |