mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
do not store HUDs on appearence notecards
This commit is contained in:
@@ -817,7 +817,7 @@ namespace OpenSim.Framework
|
||||
return data;
|
||||
}
|
||||
|
||||
public OSDMap PackForNotecard()
|
||||
public OSDMap PackForNotecard(bool NoHuds = true)
|
||||
{
|
||||
OSDMap data = new OSDMap();
|
||||
|
||||
@@ -868,7 +868,13 @@ namespace OpenSim.Framework
|
||||
// Attachments
|
||||
OSDArray attachs = new OSDArray(m_attachments.Count);
|
||||
foreach (AvatarAttachment attach in GetAttachments())
|
||||
{
|
||||
if (NoHuds &&
|
||||
attach.AttachPoint >= (uint)AttachmentPoint.HUDCenter2 &&
|
||||
attach.AttachPoint <= (uint)AttachmentPoint.HUDBottomRight)
|
||||
continue;
|
||||
attachs.Add(attach.Pack());
|
||||
}
|
||||
data["attachments"] = attachs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user