diff options
author | UbitUmarov | 2014-11-03 00:56:48 +0000 |
---|---|---|
committer | UbitUmarov | 2014-11-03 00:56:48 +0000 |
commit | a6ffcbb7f9466ff9b254d8a814010415c1829d5f (patch) | |
tree | 6453aaefb0c9e80888e8ffe2bc37c9d1e1b65438 /OpenSim/Region/Framework/Scenes | |
parent | BUG FIX prevent references to null scene (as happens on mesh uploads) (diff) | |
download | opensim-SC-a6ffcbb7f9466ff9b254d8a814010415c1829d5f.zip opensim-SC-a6ffcbb7f9466ff9b254d8a814010415c1829d5f.tar.gz opensim-SC-a6ffcbb7f9466ff9b254d8a814010415c1829d5f.tar.bz2 opensim-SC-a6ffcbb7f9466ff9b254d8a814010415c1829d5f.tar.xz |
always write physicsShapeType on sop serialization since default value
can't be guessed in some cases
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 52bd5c9..40e88f1 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -1415,8 +1415,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1415 | if (sop.VehicleParams != null) | 1415 | if (sop.VehicleParams != null) |
1416 | sop.VehicleParams.ToXml2(writer); | 1416 | sop.VehicleParams.ToXml2(writer); |
1417 | 1417 | ||
1418 | if(sop.PhysicsShapeType != sop.DefaultPhysicsShapeType()) | 1418 | writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); |
1419 | writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); | ||
1420 | if (sop.Density != 1000.0f) | 1419 | if (sop.Density != 1000.0f) |
1421 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); | 1420 | writer.WriteElementString("Density", sop.Density.ToString().ToLower()); |
1422 | if (sop.Friction != 0.6f) | 1421 | if (sop.Friction != 0.6f) |