It looks, that attachments show console command incorrectly returns Item ID. In fact, FromItem ID is returned. So I have added proper Item ID to be returned. There are cases, that FromItem ID is also useful, so I keep it for compatibility.
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>melanie
parent
9b78eb20c0
commit
72db2d064a
|
@ -144,14 +144,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||||
|
|
||||||
private void GetAttachmentsReport(ScenePresence sp, StringBuilder sb)
|
private void GetAttachmentsReport(ScenePresence sp, StringBuilder sb)
|
||||||
{
|
{
|
||||||
sb.AppendFormat("Attachments for {0}\n", sp.Name);
|
sb.AppendFormat("Attachments for {0}\n\n", sp.Name);
|
||||||
|
|
||||||
ConsoleDisplayTable ct = new ConsoleDisplayTable() { Indent = 2 };
|
ConsoleDisplayList ct = new ConsoleDisplayList();
|
||||||
ct.Columns.Add(new ConsoleDisplayTableColumn("Attachment Name", 50));
|
|
||||||
ct.Columns.Add(new ConsoleDisplayTableColumn("Local ID", 10));
|
|
||||||
ct.Columns.Add(new ConsoleDisplayTableColumn("Item ID", 36));
|
|
||||||
ct.Columns.Add(new ConsoleDisplayTableColumn("Attach Point", 14));
|
|
||||||
ct.Columns.Add(new ConsoleDisplayTableColumn("Position", 15));
|
|
||||||
|
|
||||||
// sb.AppendFormat(
|
// sb.AppendFormat(
|
||||||
// " {0,-36} {1,-10} {2,-36} {3,-14} {4,-15}\n",
|
// " {0,-36} {1,-10} {2,-36} {3,-14} {4,-15}\n",
|
||||||
|
@ -177,17 +172,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||||
// attachmentObject.Name, attachmentObject.LocalId, attachmentObject.FromItemID,
|
// attachmentObject.Name, attachmentObject.LocalId, attachmentObject.FromItemID,
|
||||||
// (AttachmentPoint)attachmentObject.AttachmentPoint, attachmentObject.RootPart.AttachedPos);
|
// (AttachmentPoint)attachmentObject.AttachmentPoint, attachmentObject.RootPart.AttachedPos);
|
||||||
|
|
||||||
ct.AddRow(
|
ct.Indent = 2;
|
||||||
attachmentObject.Name,
|
ct.AddRow("Attachment Name", attachmentObject.Name);
|
||||||
attachmentObject.LocalId,
|
ct.AddRow("Local ID", attachmentObject.LocalId);
|
||||||
attachmentObject.FromItemID,
|
ct.AddRow("Item ID", attachmentObject.UUID);
|
||||||
((AttachmentPoint)attachmentObject.AttachmentPoint),
|
ct.AddRow("From Item ID", attachmentObject.FromItemID);
|
||||||
attachmentObject.RootPart.AttachedPos);
|
ct.AddRow("Attach Point", ((AttachmentPoint)attachmentObject.AttachmentPoint));
|
||||||
|
ct.AddRow("Position", attachmentObject.RootPart.AttachedPos + "\n\n");
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
ct.AddToStringBuilder(sb);
|
ct.AddToStringBuilder(sb);
|
||||||
sb.Append("\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue