Mantis#1447. Thank you kindly, Kinoc for a patch that:

llKey2Name fix to show avatar name instead of "Basic Entity"
One line fix. Replaces "presence.Name" => 
"presence.ControllingClient.Name" to return avatar's name.
0.6.0-stable
Charles Krinke 2008-06-04 14:47:12 +00:00
parent 687090f79a
commit 994932bb60
1 changed files with 4 additions and 3 deletions

View File

@ -3692,12 +3692,13 @@ namespace OpenSim.Region.ScriptEngine.Common
if (LLUUID.TryParse(id,out key))
{
ScenePresence presence = World.GetScenePresence(key);
if (presence != null)
{
return presence.Name;
return presence.ControllingClient.Name;
//return presence.Name;
}
if (World.GetSceneObjectPart(key) != null)
{
return World.GetSceneObjectPart(key).Name;