From 873b3b0af6d2dadc829555bfefb0727a60094822 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 1 Jun 2020 19:07:49 +0100 Subject: [PATCH] do not store HUDs on appearence notecards --- OpenSim/Framework/AvatarAppearance.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index 3973d36262..0cb02bbc72 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs @@ -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; }