From 3ba6fa553eb93b9ab27d36d569bfbf6995cba419 Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Wed, 21 Sep 2022 00:19:54 +0200 Subject: [PATCH] FIRE-32179 - Fix sharing inventory items by drag-n-drop on their profile --- indra/newview/llpanelavatar.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index ff33efe4aa..3632d7c631 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -84,6 +84,19 @@ void LLPanelProfileTab::setAvatarId(const LLUUID& avatar_id) { mAvatarId = avatar_id; mSelfProfile = (getAvatarId() == gAgentID); + + // FIRE-32179: Make drag-n-drop sharing of items possible again + LLProfileDropTarget* target = getChild("drop_target"); + if (avatar_id == gAgentID) + { + // hide drop target on own profile + target->setVisible(false); + } + else + { + target->setAgentID(avatar_id); + } + // } }