do not store HUDs on appearence notecards

master
UbitUmarov 2020-06-01 19:07:49 +01:00
parent 190acf093a
commit 873b3b0af6
1 changed files with 7 additions and 1 deletions

View File

@ -817,7 +817,7 @@ namespace OpenSim.Framework
return data; return data;
} }
public OSDMap PackForNotecard() public OSDMap PackForNotecard(bool NoHuds = true)
{ {
OSDMap data = new OSDMap(); OSDMap data = new OSDMap();
@ -868,7 +868,13 @@ namespace OpenSim.Framework
// Attachments // Attachments
OSDArray attachs = new OSDArray(m_attachments.Count); OSDArray attachs = new OSDArray(m_attachments.Count);
foreach (AvatarAttachment attach in GetAttachments()) foreach (AvatarAttachment attach in GetAttachments())
{
if (NoHuds &&
attach.AttachPoint >= (uint)AttachmentPoint.HUDCenter2 &&
attach.AttachPoint <= (uint)AttachmentPoint.HUDBottomRight)
continue;
attachs.Add(attach.Pack()); attachs.Add(attach.Pack());
}
data["attachments"] = attachs; data["attachments"] = attachs;
} }