always write physicsShapeType on sop serialization since default value

can't be guessed in some cases
avinationmerge
UbitUmarov 2014-11-03 00:56:48 +00:00
parent 37a5eab0f5
commit a6ffcbb7f9
1 changed files with 1 additions and 2 deletions

View File

@ -1415,8 +1415,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
if (sop.VehicleParams != null) if (sop.VehicleParams != null)
sop.VehicleParams.ToXml2(writer); 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) if (sop.Density != 1000.0f)
writer.WriteElementString("Density", sop.Density.ToString().ToLower()); writer.WriteElementString("Density", sop.Density.ToString().ToLower());
if (sop.Friction != 0.6f) if (sop.Friction != 0.6f)