aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorubit2012-10-04 06:06:21 +0200
committerubit2012-10-04 06:06:21 +0200
commitfa5fd778233653560842a774d06f9044118f21a3 (patch)
tree06f6397ac70fda0e40760adcabd4c1c7dc9ef579 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parentMerge branch 'avination' into ubitwork (diff)
downloadopensim-SC_OLD-fa5fd778233653560842a774d06f9044118f21a3.zip
opensim-SC_OLD-fa5fd778233653560842a774d06f9044118f21a3.tar.gz
opensim-SC_OLD-fa5fd778233653560842a774d06f9044118f21a3.tar.bz2
opensim-SC_OLD-fa5fd778233653560842a774d06f9044118f21a3.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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 05aaebf..adef0e6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4401,7 +4401,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4401 Vector3 av3 = new Vector3(Util.Clip((float)color.x, 0.0f, 1.0f), 4401 Vector3 av3 = new Vector3(Util.Clip((float)color.x, 0.0f, 1.0f),
4402 Util.Clip((float)color.y, 0.0f, 1.0f), 4402 Util.Clip((float)color.y, 0.0f, 1.0f),
4403 Util.Clip((float)color.z, 0.0f, 1.0f)); 4403 Util.Clip((float)color.z, 0.0f, 1.0f));
4404 m_host.SetText(text.Length > 254 ? text.Remove(254) : text, av3, Util.Clip((float)alpha, 0.0f, 1.0f)); 4404 if (text.Length > 254)
4405 text = text.Remove(254);
4406
4407 byte[] data;
4408 do
4409 {
4410 data = Util.UTF8.GetBytes(text);
4411 if (data.Length > 254)
4412 text = text.Substring(0, text.Length - 1);
4413 } while (data.Length > 254);
4414
4415 m_host.SetText(text, av3, Util.Clip((float)alpha, 0.0f, 1.0f));
4405 //m_host.ParentGroup.HasGroupChanged = true; 4416 //m_host.ParentGroup.HasGroupChanged = true;
4406 //m_host.ParentGroup.ScheduleGroupForFullUpdate(); 4417 //m_host.ParentGroup.ScheduleGroupForFullUpdate();
4407 } 4418 }