always write physicsShapeType on sop serialization since default value
can't be guessed in some casesavinationmerge
parent
37a5eab0f5
commit
a6ffcbb7f9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue