diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 86aed2d0a..f378d932a 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9583,6 +9583,15 @@ class ListActivate : public view_listener_t } }; +class ListObjectCamTo : public view_listener_t +{ + bool handleEvent(LLPointer event, const LLSD& userdata) + { + gAgentCamera.lookAtObject(LFIDBearer::getActiveSelectedID(), false); + return true; + } +}; + class MediaCtrlCopyURL : public view_listener_t { bool handleEvent(LLPointer event, const LLSD& userdata) @@ -9975,6 +9984,7 @@ void initialize_menus() addMenu(new ListLeave, "List.Leave"); addMenu(new ListJoin, "List.Join"); addMenu(new ListActivate, "List.Activate"); + addMenu(new ListObjectCamTo, "List.Object.CamTo"); add_radar_listeners(); diff --git a/indra/newview/skins/default/xui/en-us/menu_url_objectim.xml b/indra/newview/skins/default/xui/en-us/menu_url_objectim.xml index 63b941a5b..79262f6ec 100644 --- a/indra/newview/skins/default/xui/en-us/menu_url_objectim.xml +++ b/indra/newview/skins/default/xui/en-us/menu_url_objectim.xml @@ -40,6 +40,10 @@ + + + +