Skip to content

Commit 210f559

Browse files
authored
Media first click interact self check fix (#4406, #4426)
1 parent 5d4e2c9 commit 210f559

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

indra/newview/lltoolpie.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,12 +1541,6 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
15411541
return false;
15421542
}
15431543

1544-
// Own objects
1545-
if((FirstClickPref & MEDIA_FIRST_CLICK_OWN) && object->permYouOwner())
1546-
{
1547-
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_OWN" << LL_ENDL;
1548-
return true;
1549-
}
15501544
// HUD attachments
15511545
if((FirstClickPref & MEDIA_FIRST_CLICK_HUD) && object->isHUDAttachment())
15521546
{
@@ -1569,6 +1563,13 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
15691563
return false;
15701564
}
15711565

1566+
// Own objects
1567+
if((FirstClickPref & MEDIA_FIRST_CLICK_OWN) && owner_id == gAgent.getID())
1568+
{
1569+
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_OWN" << LL_ENDL;
1570+
return true;
1571+
}
1572+
15721573
// Check if the object is owned by a friend of the agent
15731574
if(FirstClickPref & MEDIA_FIRST_CLICK_FRIEND)
15741575
{

0 commit comments

Comments
 (0)