diff options
author | Melanie | 2012-10-03 17:40:11 +0100 |
---|---|---|
committer | Melanie | 2012-10-03 17:40:11 +0100 |
commit | bf565e9747bfd411ac6d2405bdbd26b519735dd3 (patch) | |
tree | 84dc5992afbbdc5795060957963cfc76949a978c /OpenSim/Region/ScriptEngine/Shared | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Fix a viewer crash issue (diff) | |
download | opensim-SC-bf565e9747bfd411ac6d2405bdbd26b519735dd3.zip opensim-SC-bf565e9747bfd411ac6d2405bdbd26b519735dd3.tar.gz opensim-SC-bf565e9747bfd411ac6d2405bdbd26b519735dd3.tar.bz2 opensim-SC-bf565e9747bfd411ac6d2405bdbd26b519735dd3.tar.xz |
Merge branch 'avination' into careminster
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 |
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 | } |