Cleaned up Color and Text parameters in SOP and made LocalFlags public for module access.
parent
2c6272d11a
commit
5ced49aaa8
|
@ -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; }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue