diff options
author | Justin Clark-Casey (justincc) | 2011-11-21 17:51:38 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-21 17:51:38 +0000 |
commit | 58a114787096df901d7d8dbf1370089771f91cf3 (patch) | |
tree | 45413ce70acb2f5715e56230923d77343b1ba67c /OpenSim/Region | |
parent | Remove unused PhysicsActor.SOPDescription (diff) | |
download | opensim-SC_OLD-58a114787096df901d7d8dbf1370089771f91cf3.zip opensim-SC_OLD-58a114787096df901d7d8dbf1370089771f91cf3.tar.gz opensim-SC_OLD-58a114787096df901d7d8dbf1370089771f91cf3.tar.bz2 opensim-SC_OLD-58a114787096df901d7d8dbf1370089771f91cf3.tar.xz |
refactor: Make SOP.Description an automatic property
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 3 insertions, 6 deletions
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 | |||
242 | private byte[] m_TextureAnimation; | 242 | private byte[] m_TextureAnimation; |
243 | private byte m_clickAction; | 243 | private byte m_clickAction; |
244 | private Color m_color = Color.Black; | 244 | private Color m_color = Color.Black; |
245 | private string m_description = String.Empty; | ||
246 | private readonly List<uint> m_lastColliders = new List<uint>(); | 245 | private readonly List<uint> m_lastColliders = new List<uint>(); |
247 | private int m_linkNum; | 246 | private int m_linkNum; |
248 | 247 | ||
@@ -323,6 +322,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
323 | m_TextureAnimation = Utils.EmptyBytes; | 322 | m_TextureAnimation = Utils.EmptyBytes; |
324 | m_particleSystem = Utils.EmptyBytes; | 323 | m_particleSystem = Utils.EmptyBytes; |
325 | Rezzed = DateTime.UtcNow; | 324 | Rezzed = DateTime.UtcNow; |
325 | Description = String.Empty; | ||
326 | 326 | ||
327 | m_inventory = new SceneObjectPartInventory(this); | 327 | m_inventory = new SceneObjectPartInventory(this); |
328 | } | 328 | } |
@@ -342,6 +342,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
342 | m_name = "Primitive"; | 342 | m_name = "Primitive"; |
343 | 343 | ||
344 | Rezzed = DateTime.UtcNow; | 344 | Rezzed = DateTime.UtcNow; |
345 | Description = String.Empty; | ||
345 | CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed); | 346 | CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed); |
346 | LastOwnerID = CreatorID = OwnerID = ownerID; | 347 | LastOwnerID = CreatorID = OwnerID = ownerID; |
347 | UUID = UUID.Random(); | 348 | UUID = UUID.Random(); |
@@ -906,11 +907,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
906 | set { m_acceleration = value; } | 907 | set { m_acceleration = value; } |
907 | } | 908 | } |
908 | 909 | ||
909 | public string Description | 910 | public string Description { get; set; } |
910 | { | ||
911 | get { return m_description; } | ||
912 | set { m_description = value; } | ||
913 | } | ||
914 | 911 | ||
915 | /// <value> | 912 | /// <value> |
916 | /// Text color. | 913 | /// Text color. |