aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 52d96bc..7fa6f05 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4006,7 +4006,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4006 { 4006 {
4007 m_host.AddScriptLPS(1); 4007 m_host.AddScriptLPS(1);
4008 Vector3 av3 = Util.Clip(color, 0.0f, 1.0f); 4008 Vector3 av3 = Util.Clip(color, 0.0f, 1.0f);
4009 m_host.SetText(text.Length > 254 ? text.Remove(254) : text, av3, Util.Clip((float)alpha, 0.0f, 1.0f)); 4009 if (text.Length > 254)
4010 text = text.Remove(254);
4011
4012 byte[] data;
4013 do
4014 {
4015 data = Util.UTF8.GetBytes(text);
4016 if (data.Length > 254)
4017 text = text.Substring(0, text.Length - 1);
4018 } while (data.Length > 254);
4019
4020 m_host.SetText(text, av3, Util.Clip((float)alpha, 0.0f, 1.0f));
4010 //m_host.ParentGroup.HasGroupChanged = true; 4021 //m_host.ParentGroup.HasGroupChanged = true;
4011 //m_host.ParentGroup.ScheduleGroupForFullUpdate(); 4022 //m_host.ParentGroup.ScheduleGroupForFullUpdate();
4012 } 4023 }