From 5ced49aaa8ca4362ef8b17cb4f892da8c11d0e3f Mon Sep 17 00:00:00 2001 From: Dan Lake Date: Thu, 19 Jan 2012 03:03:22 -0800 Subject: [PATCH] Cleaned up Color and Text parameters in SOP and made LocalFlags public for module access. --- .../Framework/Scenes/SceneObjectPart.cs | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index aea47e6407..a70c8fa371 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -236,7 +236,7 @@ namespace OpenSim.Region.Framework.Scenes public bool IgnoreUndoUpdate = false; - private PrimFlags LocalFlags; + public PrimFlags LocalFlags; private float m_damage = -1.0f; private byte[] m_TextureAnimation; @@ -904,32 +904,18 @@ namespace OpenSim.Region.Framework.Scenes public Color Color { get { return m_color; } - set - { - m_color = value; - - /* ScheduleFullUpdate() need not be called b/c after - * setting the color, the text will be set, so then - * ScheduleFullUpdate() will be called. */ - //ScheduleFullUpdate(); - } + set { m_color = value; } } public string Text { get { - string returnstr = m_text; - if (returnstr.Length > 255) - { - returnstr = returnstr.Substring(0, 254); - } - return returnstr; - } - set - { - m_text = value; + if (m_text.Length > 255) + return m_text.Substring(0, 254); + return m_text; } + set { m_text = value; } }