aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/lltoolpie.cpp4
-rw-r--r--linden/indra/newview/llviewermenu.cpp18
-rw-r--r--linden/indra/newview/llviewermenu.h1
3 files changed, 20 insertions, 3 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index b32169d..cda76d9 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -681,7 +681,7 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
681 if (mPick.mPickType == LLPickInfo::PICK_LAND 681 if (mPick.mPickType == LLPickInfo::PICK_LAND
682 && !mPick.mPosGlobal.isExactlyZero()) 682 && !mPick.mPosGlobal.isExactlyZero())
683 { 683 {
684 handle_go_to(); 684 handle_go_to_confirm();
685 return TRUE; 685 return TRUE;
686 } 686 }
687 else if (mPick.mObjectID.notNull() 687 else if (mPick.mObjectID.notNull()
@@ -691,7 +691,7 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
691 if(mPick.getObject().notNull() && mPick.getObject()->isHUDAttachment()) 691 if(mPick.getObject().notNull() && mPick.getObject()->isHUDAttachment())
692 return FALSE; 692 return FALSE;
693 693
694 handle_go_to(); 694 handle_go_to_confirm();
695 return TRUE; 695 return TRUE;
696 } 696 }
697 } 697 }
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index d0e326c..bd8b6ab 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -2384,7 +2384,7 @@ class LLObjectImportUpload : public view_listener_t
2384 } 2384 }
2385}; 2385};
2386 2386
2387bool handle_go_to() 2387bool handle_go_to_confirm()
2388{ 2388{
2389// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) 2389// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c)
2390 if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) ) 2390 if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) )
@@ -2404,6 +2404,22 @@ bool handle_go_to()
2404 return true; 2404 return true;
2405} 2405}
2406 2406
2407
2408bool handle_go_to()
2409{
2410// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c)
2411 if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) )
2412 {
2413 return true;
2414 }
2415// [/RLVa:KB]
2416
2417 handle_go_to_callback( 0, (void*)LLToolPie::getInstance() );
2418
2419 return true;
2420}
2421
2422
2407//static 2423//static
2408void handle_go_to_callback(S32 option, void *userdata) 2424void handle_go_to_callback(S32 option, void *userdata)
2409{ 2425{
diff --git a/linden/indra/newview/llviewermenu.h b/linden/indra/newview/llviewermenu.h
index c4a88a2..a2f953c 100644
--- a/linden/indra/newview/llviewermenu.h
+++ b/linden/indra/newview/llviewermenu.h
@@ -106,6 +106,7 @@ void handle_toggle_flycam();
106bool handle_sit_or_stand(); 106bool handle_sit_or_stand();
107bool handle_give_money_dialog(); 107bool handle_give_money_dialog();
108bool handle_object_open(); 108bool handle_object_open();
109bool handle_go_to_confirm();
109bool handle_go_to(); 110bool handle_go_to();
110 111
111// Export to XML or Collada 112// Export to XML or Collada