From a6ffcbb7f9466ff9b254d8a814010415c1829d5f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 3 Nov 2014 00:56:48 +0000 Subject: [PATCH] always write physicsShapeType on sop serialization since default value can't be guessed in some cases --- .../Framework/Scenes/Serialization/SceneObjectSerializer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 52bd5c9c7f..40e88f110e 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 if (sop.VehicleParams != null) sop.VehicleParams.ToXml2(writer); - if(sop.PhysicsShapeType != sop.DefaultPhysicsShapeType()) - writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); + writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); if (sop.Density != 1000.0f) writer.WriteElementString("Density", sop.Density.ToString().ToLower()); if (sop.Friction != 0.6f)