diff options
author | Melanie | 2013-02-07 03:30:02 +0000 |
---|---|---|
committer | Melanie | 2013-02-07 03:30:02 +0000 |
commit | 6504e3d4cee1573115e8a83c06227a297a32f093 (patch) | |
tree | ca9196a2afb089cbce687d530e9743a1e995732f /OpenSim/Region/Framework | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-6504e3d4cee1573115e8a83c06227a297a32f093.zip opensim-SC_OLD-6504e3d4cee1573115e8a83c06227a297a32f093.tar.gz opensim-SC_OLD-6504e3d4cee1573115e8a83c06227a297a32f093.tar.bz2 opensim-SC_OLD-6504e3d4cee1573115e8a83c06227a297a32f093.tar.xz |
Rename "Bounciness" to "Restitution"
Diffstat (limited to 'OpenSim/Region/Framework')
-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 55b5462..b00f388 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1390,7 +1390,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1390 | public float Density { get; set; } | 1390 | public float Density { get; set; } |
1391 | public float GravityModifier { get; set; } | 1391 | public float GravityModifier { get; set; } |
1392 | public float Friction { get; set; } | 1392 | public float Friction { get; set; } |
1393 | public float Bounciness { get; set; } | 1393 | public float Restitution { get; set; } |
1394 | 1394 | ||
1395 | #endregion Public Properties with only Get | 1395 | #endregion Public Properties with only Get |
1396 | 1396 | ||
@@ -3964,8 +3964,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3964 | GravityModifier = physdata.GravitationModifier; | 3964 | GravityModifier = physdata.GravitationModifier; |
3965 | if(Friction != physdata.Friction) | 3965 | if(Friction != physdata.Friction) |
3966 | Friction = physdata.Friction; | 3966 | Friction = physdata.Friction; |
3967 | if(Bounciness != physdata.Bounce) | 3967 | if(Restitution != physdata.Bounce) |
3968 | Bounciness = physdata.Bounce; | 3968 | Restitution = physdata.Bounce; |
3969 | } | 3969 | } |
3970 | /// <summary> | 3970 | /// <summary> |
3971 | /// Update the flags on this prim. This covers properties such as phantom, physics and temporary. | 3971 | /// 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 78229fe..39420a6 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -618,7 +618,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
618 | 618 | ||
619 | private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader) | 619 | private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader) |
620 | { | 620 | { |
621 | obj.Bounciness = reader.ReadElementContentAsFloat("Bounce", String.Empty); | 621 | obj.Restitution = reader.ReadElementContentAsFloat("Bounce", String.Empty); |
622 | } | 622 | } |
623 | 623 | ||
624 | private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader) | 624 | private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader) |
@@ -1295,8 +1295,8 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1295 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); | 1295 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); |
1296 | if (sop.Friction != 0.6f) | 1296 | if (sop.Friction != 0.6f) |
1297 | writer.WriteElementString("Friction", sop.Friction.ToString().ToLower()); | 1297 | writer.WriteElementString("Friction", sop.Friction.ToString().ToLower()); |
1298 | if (sop.Bounciness != 0.5f) | 1298 | if (sop.Restitution != 0.5f) |
1299 | writer.WriteElementString("Bounce", sop.Bounciness.ToString().ToLower()); | 1299 | writer.WriteElementString("Bounce", sop.Restitution.ToString().ToLower()); |
1300 | if (sop.GravityModifier != 1.0f) | 1300 | if (sop.GravityModifier != 1.0f) |
1301 | writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower()); | 1301 | writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower()); |
1302 | 1302 | ||