Add local and UUID to information output of "show object" and "show part" region console commands

connector_plugin
Justin Clark-Casey (justincc) 2012-10-18 23:45:07 +01:00
parent 1f3c9db2b9
commit 75f5e66d1c
1 changed files with 4 additions and 0 deletions

View File

@ -481,6 +481,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
{
sb.AppendFormat("Name: {0}\n", so.Name);
sb.AppendFormat("Description: {0}\n", so.Description);
sb.AppendFormat("Local ID {0}\n", so.LocalId);
sb.AppendFormat("UUID {0}\n", so.UUID);
sb.AppendFormat("Location: {0} @ {1}\n", so.AbsolutePosition, so.Scene.RegionInfo.RegionName);
sb.AppendFormat("Parts: {0}\n", so.PrimCount);
sb.AppendFormat("Flags: {0}\n", so.RootPart.Flags);
@ -492,6 +494,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
{
sb.AppendFormat("Name: {0}\n", sop.Name);
sb.AppendFormat("Description: {0}\n", sop.Description);
sb.AppendFormat("Local ID {0}\n", sop.LocalId);
sb.AppendFormat("UUID {0}\n", sop.UUID);
sb.AppendFormat("Location: {0} @ {1}\n", sop.AbsolutePosition, sop.ParentGroup.Scene.RegionInfo.RegionName);
sb.AppendFormat("Parent: {0}",
sop.IsRoot ? "Is Root\n" : string.Format("{0} {1}\n", sop.ParentGroup.Name, sop.ParentGroup.UUID));