mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
mantis 9205: fix text alpha for lsl
This commit is contained in:
@@ -5308,10 +5308,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public Color4 GetTextColor()
|
||||
{
|
||||
Color color = Color;
|
||||
// note that Alpha is inverted for lludp
|
||||
Color color = m_color;
|
||||
return new Color4(color.R, color.G, color.B, (byte)(0xFF - color.A));
|
||||
}
|
||||
|
||||
public float GetTextAlpha()
|
||||
{
|
||||
return m_color.A * 0.0039215686f;
|
||||
}
|
||||
|
||||
public void ResetOwnerChangeFlag()
|
||||
{
|
||||
List<UUID> inv = Inventory.GetInventoryList();
|
||||
|
||||
Reference in New Issue
Block a user