From 58a114787096df901d7d8dbf1370089771f91cf3 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 21 Nov 2011 17:51:38 +0000 Subject: refactor: Make SOP.Description an automatic property --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index d2b4fb2..b97efc4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -242,7 +242,6 @@ namespace OpenSim.Region.Framework.Scenes private byte[] m_TextureAnimation; private byte m_clickAction; private Color m_color = Color.Black; - private string m_description = String.Empty; private readonly List m_lastColliders = new List(); private int m_linkNum; @@ -323,6 +322,7 @@ namespace OpenSim.Region.Framework.Scenes m_TextureAnimation = Utils.EmptyBytes; m_particleSystem = Utils.EmptyBytes; Rezzed = DateTime.UtcNow; + Description = String.Empty; m_inventory = new SceneObjectPartInventory(this); } @@ -342,6 +342,7 @@ namespace OpenSim.Region.Framework.Scenes m_name = "Primitive"; Rezzed = DateTime.UtcNow; + Description = String.Empty; CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed); LastOwnerID = CreatorID = OwnerID = ownerID; UUID = UUID.Random(); @@ -906,11 +907,7 @@ namespace OpenSim.Region.Framework.Scenes set { m_acceleration = value; } } - public string Description - { - get { return m_description; } - set { m_description = value; } - } + public string Description { get; set; } /// /// Text color. -- cgit v1.1