remove mono compiler warning: if (sop.Color != null) always returns true as sop.Color is a value type.
parent
3b1c91c24b
commit
3d32f05cde
|
@ -1114,15 +1114,13 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
WriteVector(writer, "AngularVelocity", sop.AngularVelocity);
|
||||
WriteVector(writer, "Acceleration", sop.Acceleration);
|
||||
writer.WriteElementString("Description", sop.Description);
|
||||
if (sop.Color != null)
|
||||
{
|
||||
writer.WriteStartElement("Color");
|
||||
writer.WriteElementString("R", sop.Color.R.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("G", sop.Color.G.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("B", sop.Color.B.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("A", sop.Color.G.ToString(Utils.EnUsCulture));
|
||||
writer.WriteEndElement();
|
||||
}
|
||||
|
||||
writer.WriteStartElement("Color");
|
||||
writer.WriteElementString("R", sop.Color.R.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("G", sop.Color.G.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("B", sop.Color.B.ToString(Utils.EnUsCulture));
|
||||
writer.WriteElementString("A", sop.Color.G.ToString(Utils.EnUsCulture));
|
||||
writer.WriteEndElement();
|
||||
|
||||
writer.WriteElementString("Text", sop.Text);
|
||||
writer.WriteElementString("SitName", sop.SitName);
|
||||
|
|
Loading…
Reference in New Issue