parent
5d4e2c91b8
commit
210f559efe
|
|
@ -1541,12 +1541,6 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
|
|||
return false;
|
||||
}
|
||||
|
||||
// Own objects
|
||||
if((FirstClickPref & MEDIA_FIRST_CLICK_OWN) && object->permYouOwner())
|
||||
{
|
||||
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_OWN" << LL_ENDL;
|
||||
return true;
|
||||
}
|
||||
// HUD attachments
|
||||
if((FirstClickPref & MEDIA_FIRST_CLICK_HUD) && object->isHUDAttachment())
|
||||
{
|
||||
|
|
@ -1569,6 +1563,13 @@ bool LLToolPie::shouldAllowFirstMediaInteraction(const LLPickInfo& pick, bool mo
|
|||
return false;
|
||||
}
|
||||
|
||||
// Own objects
|
||||
if((FirstClickPref & MEDIA_FIRST_CLICK_OWN) && owner_id == gAgent.getID())
|
||||
{
|
||||
LL_DEBUGS_ONCE() << "FirstClickPref & MEDIA_FIRST_CLICK_OWN" << LL_ENDL;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check if the object is owned by a friend of the agent
|
||||
if(FirstClickPref & MEDIA_FIRST_CLICK_FRIEND)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue