Skip to content

Commit a588add

Browse files
DarlCatakleshchev
authored andcommitted
Media first click interact friend check fix
1 parent 4799f2e commit a588add

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

indra/newview/lltoolpie.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,11 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
15731573
// Check if the object is owned by a friend of the agent
15741574
if(FirstClickPref & MEDIA_FIRST_CLICK_FRIEND)
15751575
{
1576-
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_FRIEND. id: " << owner_id << LL_ENDL;
1577-
return LLAvatarTracker::instance().isBuddy(owner_id);
1576+
if(LLAvatarTracker::instance().isBuddy(owner_id))
1577+
{
1578+
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_FRIEND. id: " << owner_id << LL_ENDL;
1579+
return true;
1580+
}
15781581
}
15791582

15801583
// Check for objects set to or owned by the active group

0 commit comments

Comments
 (0)