From 6009bbe5686f9468827c612a7d8ac66b8abda422 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 11 Sep 2009 17:59:07 -0700 Subject: Fixed double click tp from working on HUDs --- linden/indra/newview/lltoolpie.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'linden/indra/newview/lltoolpie.cpp') diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp index 7f3bd82..921931b 100644 --- a/linden/indra/newview/lltoolpie.cpp +++ b/linden/indra/newview/lltoolpie.cpp @@ -646,9 +646,10 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask) else if (mPick.mObjectID.notNull() && !mPick.mPosGlobal.isExactlyZero()) { - // Hit an object - // HACK: Call the last hit position the point we hit on the object - //gLastHitPosGlobal += gLastHitObjectOffset; + //Zwagoth: No more teleport to HUD attachments. >:o + if(mPick.getObject().notNull() && mPick.getObject()->isHUDAttachment()) + return FALSE; + handle_go_to(); return TRUE; } -- cgit v1.1