FIRE-32179 - Fix sharing inventory items by drag-n-drop on their profile

master
Zi Ree 2022-09-21 00:19:54 +02:00
parent 71ab85a0c2
commit 3ba6fa553e
1 changed files with 13 additions and 0 deletions

View File

@ -84,6 +84,19 @@ void LLPanelProfileTab::setAvatarId(const LLUUID& avatar_id)
{
mAvatarId = avatar_id;
mSelfProfile = (getAvatarId() == gAgentID);
// <FS:Zi> FIRE-32179: Make drag-n-drop sharing of items possible again
LLProfileDropTarget* target = getChild<LLProfileDropTarget>("drop_target");
if (avatar_id == gAgentID)
{
// hide drop target on own profile
target->setVisible(false);
}
else
{
target->setAgentID(avatar_id);
}
// </FS:Zi>
}
}