Skip to content

Commit 4799f2e

Browse files
DarlCatakleshchev
authored andcommitted
Media first click interact group check fix
1 parent 31f8ebf commit 4799f2e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

indra/newview/lltoolpie.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,11 +1580,9 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
15801580
// Check for objects set to or owned by the active group
15811581
if(FirstClickPref & MEDIA_FIRST_CLICK_GROUP)
15821582
{
1583-
// Get our active group
1584-
LLUUID active_group = gAgent.getGroupID();
1585-
if(active_group.notNull() && (active_group == group_id || active_group == owner_id))
1583+
if(gAgent.isInGroup(group_id) || gAgent.isInGroup(owner_id))
15861584
{
1587-
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_GROUP.Active group: " << active_group << ", group_id:" << group_id << ", owner_id: " << owner_id << LL_ENDL;
1585+
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_GROUP. group_id:" << group_id << ", owner_id: " << owner_id << LL_ENDL;
15881586
return true;
15891587
}
15901588
}

0 commit comments

Comments
 (0)