also show total number of a avatar prims on attachments show

master
UbitUmarov 2020-06-03 01:19:42 +01:00
parent 0a22bde6d1
commit 2efa53af52
1 changed files with 4 additions and 1 deletions

View File

@ -227,6 +227,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
ConsoleDisplayList ct = new ConsoleDisplayList();
int totalprims = 0;
List<SceneObjectGroup> attachmentObjects = sp.GetAttachments();
for (int i = 0; i < attachmentObjects.Count; ++i)
{
@ -238,8 +239,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
ct.AddRow("From Item ID", attachmentObject.FromItemID);
ct.AddRow("Attach Point", ((AttachmentPoint)attachmentObject.AttachmentPoint));
ct.AddRow("Prims", attachmentObject.PrimCount);
ct.AddRow("Position", attachmentObject.RootPart.AttachedPos + "\n\n");
ct.AddRow("Position", attachmentObject.RootPart.AttachedPos + "\n");
totalprims += attachmentObject.PrimCount;
}
sb.AppendFormat("--Total Attachment prims for {0} : {1}\n\n", sp.Name, totalprims);
ct.AddToStringBuilder(sb);
}