aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-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 f0d378d..d8da173 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4365,7 +4365,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4365 { 4365 {
4366 m_host.AddScriptLPS(1); 4366 m_host.AddScriptLPS(1);
4367 Vector3 av3 = Util.Clip(color, 0.0f, 1.0f); 4367 Vector3 av3 = Util.Clip(color, 0.0f, 1.0f);
4368 m_host.SetText(text.Length > 254 ? text.Remove(254) : text, av3, Util.Clip((float)alpha, 0.0f, 1.0f)); 4368 if (text.Length > 254)
4369 text = text.Remove(254);
4370
4371 byte[] data;
4372 do
4373 {
4374 data = Util.UTF8.GetBytes(text);
4375 if (data.Length > 254)
4376 text = text.Substring(0, text.Length - 1);
4377 } while (data.Length > 254);
4378
4379 m_host.SetText(text, av3, Util.Clip((float)alpha, 0.0f, 1.0f));
4369 //m_host.ParentGroup.HasGroupChanged = true; 4380 //m_host.ParentGroup.HasGroupChanged = true;
4370 //m_host.ParentGroup.ScheduleGroupForFullUpdate(); 4381 //m_host.ParentGroup.ScheduleGroupForFullUpdate();
4371 } 4382 }