SL-16604 Double click teleport should ignore clicking own nametag
parent
bc78cf0b51
commit
82a3c185cd
|
|
@ -654,7 +654,8 @@ bool LLToolPie::teleportToClickedLocation()
|
|||
LLViewerObject* objp = mHoverPick.getObject();
|
||||
LLViewerObject* parentp = objp ? objp->getRootEdit() : NULL;
|
||||
|
||||
if (objp->getAvatar() == gAgentAvatarp)
|
||||
if (objp->getAvatar() == gAgentAvatarp
|
||||
|| objp == gAgentAvatarp) // ex: nametag
|
||||
{
|
||||
// Don't teleport to self, teleporting to other avatars is fine
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue