Cleaned up Color and Text parameters in SOP and made LocalFlags public for module access.

iar_mods
Dan Lake 2012-01-19 03:03:22 -08:00
parent 2c6272d11a
commit 5ced49aaa8
1 changed files with 6 additions and 20 deletions

View File

@ -236,7 +236,7 @@ namespace OpenSim.Region.Framework.Scenes
public bool IgnoreUndoUpdate = false; public bool IgnoreUndoUpdate = false;
private PrimFlags LocalFlags; public PrimFlags LocalFlags;
private float m_damage = -1.0f; private float m_damage = -1.0f;
private byte[] m_TextureAnimation; private byte[] m_TextureAnimation;
@ -904,32 +904,18 @@ namespace OpenSim.Region.Framework.Scenes
public Color Color public Color Color
{ {
get { return m_color; } get { return m_color; }
set set { m_color = value; }
{
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();
}
} }
public string Text public string Text
{ {
get get
{ {
string returnstr = m_text; if (m_text.Length > 255)
if (returnstr.Length > 255) return m_text.Substring(0, 254);
{ return m_text;
returnstr = returnstr.Substring(0, 254);
}
return returnstr;
}
set
{
m_text = value;
} }
set { m_text = value; }
} }