Media first click interact friend check fix

master
Darl 2025-07-23 19:07:00 -05:00 committed by Andrey Kleshchev
parent 4799f2e338
commit a588addc68
1 changed files with 5 additions and 2 deletions

View File

@ -1573,8 +1573,11 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
// Check if the object is owned by a friend of the agent
if(FirstClickPref & MEDIA_FIRST_CLICK_FRIEND)
{
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_FRIEND. id: " << owner_id << LL_ENDL;
return LLAvatarTracker::instance().isBuddy(owner_id);
if(LLAvatarTracker::instance().isBuddy(owner_id))
{
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_FRIEND. id: " << owner_id << LL_ENDL;
return true;
}
}
// Check for objects set to or owned by the active group