From 3795cface2c089c9148e727b086cb4cd554ff38e Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 14 Oct 2009 17:39:38 +0100 Subject: [PATCH] Enable LSL dialogs to display group names properly --- .../Shared/Api/Implementation/LSL_Api.cs | 10 ++++++ ...ion.ClientStack.LindenUDP.Tests.dll.config | 33 ------------------- 2 files changed, 10 insertions(+), 33 deletions(-) delete mode 100644 bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.config diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index b5f6721675..e10e612296 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -859,7 +859,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api World.Entities.TryGetValue(objecUUID, out SensedObject); if (SensedObject == null) + { + IGroupsModule groups = World.RequestModuleInterface(); + if (groups != null) + { + GroupRecord gr = groups.GetGroupRecord(objecUUID); + if (gr != null) + return gr.GroupName; + } return String.Empty; + } + return SensedObject.Name; } diff --git a/bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.config b/bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.config deleted file mode 100644 index a3f681d89e..0000000000 --- a/bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll.config +++ /dev/null @@ -1,33 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -