diff options
author | Jacek Antonelli | 2008-09-28 17:21:23 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-28 17:21:46 -0500 |
commit | 31e7c77a411d94bc87f0232588b339149bb29a49 (patch) | |
tree | 49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/newview/llviewermenu.cpp | |
parent | Second Life viewer sources 1.21.2-RC (diff) | |
download | meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2 meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz |
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index b1cd9b6..c7207ba 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -1513,7 +1513,7 @@ class LLObjectReportAbuse : public view_listener_t | |||
1513 | { | 1513 | { |
1514 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1514 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1515 | { | 1515 | { |
1516 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1516 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1517 | if (objectp) | 1517 | if (objectp) |
1518 | { | 1518 | { |
1519 | LLFloaterReporter::showFromObject(objectp->getID()); | 1519 | LLFloaterReporter::showFromObject(objectp->getID()); |
@@ -1537,7 +1537,7 @@ class LLObjectTouch : public view_listener_t | |||
1537 | { | 1537 | { |
1538 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1538 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1539 | { | 1539 | { |
1540 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1540 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1541 | if (!object) return true; | 1541 | if (!object) return true; |
1542 | 1542 | ||
1543 | LLPickInfo pick = LLToolPie::getInstance()->getPick(); | 1543 | LLPickInfo pick = LLToolPie::getInstance()->getPick(); |
@@ -1588,7 +1588,7 @@ class LLObjectEnableTouch : public view_listener_t | |||
1588 | { | 1588 | { |
1589 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1589 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1590 | { | 1590 | { |
1591 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1591 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1592 | bool new_value = obj && obj->flagHandleTouch(); | 1592 | bool new_value = obj && obj->flagHandleTouch(); |
1593 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 1593 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
1594 | 1594 | ||
@@ -1622,7 +1622,7 @@ void label_touch(std::string& label, void*) | |||
1622 | 1622 | ||
1623 | bool handle_object_open() | 1623 | bool handle_object_open() |
1624 | { | 1624 | { |
1625 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1625 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1626 | if(!obj) return true; | 1626 | if(!obj) return true; |
1627 | 1627 | ||
1628 | LLFloaterOpenObject::show(); | 1628 | LLFloaterOpenObject::show(); |
@@ -1643,7 +1643,7 @@ class LLObjectEnableOpen : public view_listener_t | |||
1643 | { | 1643 | { |
1644 | // Look for contents in root object, which is all the LLFloaterOpenObject | 1644 | // Look for contents in root object, which is all the LLFloaterOpenObject |
1645 | // understands. | 1645 | // understands. |
1646 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1646 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1647 | bool new_value = (obj != NULL); | 1647 | bool new_value = (obj != NULL); |
1648 | if (new_value) | 1648 | if (new_value) |
1649 | { | 1649 | { |
@@ -1684,7 +1684,7 @@ bool toggle_build_mode() | |||
1684 | gViewerWindow->showCursor(); | 1684 | gViewerWindow->showCursor(); |
1685 | } | 1685 | } |
1686 | // avoid spurious avatar movements pulling out of edit mode | 1686 | // avoid spurious avatar movements pulling out of edit mode |
1687 | LLViewerJoystick::getInstance()->moveAvatar(true); | 1687 | LLViewerJoystick::getInstance()->setNeedsReset(); |
1688 | } | 1688 | } |
1689 | else | 1689 | else |
1690 | { | 1690 | { |
@@ -1723,7 +1723,7 @@ bool toggle_build_mode() | |||
1723 | gAgent.resetView(false); | 1723 | gAgent.resetView(false); |
1724 | 1724 | ||
1725 | // avoid spurious avatar movements | 1725 | // avoid spurious avatar movements |
1726 | LLViewerJoystick::getInstance()->moveAvatar(true); | 1726 | LLViewerJoystick::getInstance()->setNeedsReset(); |
1727 | 1727 | ||
1728 | } | 1728 | } |
1729 | return true; | 1729 | return true; |
@@ -1996,7 +1996,7 @@ BOOL enable_has_attachments(void*) | |||
1996 | void handle_follow(void *userdata) | 1996 | void handle_follow(void *userdata) |
1997 | { | 1997 | { |
1998 | // follow a given avatar by ID | 1998 | // follow a given avatar by ID |
1999 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1999 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2000 | if (objectp) | 2000 | if (objectp) |
2001 | { | 2001 | { |
2002 | gAgent.startFollowPilot(objectp->getID()); | 2002 | gAgent.startFollowPilot(objectp->getID()); |
@@ -2007,7 +2007,7 @@ class LLObjectEnableMute : public view_listener_t | |||
2007 | { | 2007 | { |
2008 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2008 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2009 | { | 2009 | { |
2010 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2010 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2011 | bool new_value = (object != NULL); | 2011 | bool new_value = (object != NULL); |
2012 | if (new_value) | 2012 | if (new_value) |
2013 | { | 2013 | { |
@@ -2030,7 +2030,7 @@ class LLObjectMute : public view_listener_t | |||
2030 | { | 2030 | { |
2031 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2031 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2032 | { | 2032 | { |
2033 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2033 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2034 | if (!object) return true; | 2034 | if (!object) return true; |
2035 | 2035 | ||
2036 | LLUUID id; | 2036 | LLUUID id; |
@@ -2160,7 +2160,7 @@ class LLAvatarFreeze : public view_listener_t | |||
2160 | { | 2160 | { |
2161 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2161 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2162 | { | 2162 | { |
2163 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2163 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2164 | if( avatar ) | 2164 | if( avatar ) |
2165 | { | 2165 | { |
2166 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); | 2166 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); |
@@ -2210,7 +2210,7 @@ class LLAvatarDebug : public view_listener_t | |||
2210 | { | 2210 | { |
2211 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2211 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2212 | { | 2212 | { |
2213 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2213 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2214 | if( avatar ) | 2214 | if( avatar ) |
2215 | { | 2215 | { |
2216 | avatar->dumpLocalTextures(); | 2216 | avatar->dumpLocalTextures(); |
@@ -2262,7 +2262,7 @@ class LLAvatarEject : public view_listener_t | |||
2262 | { | 2262 | { |
2263 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2263 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2264 | { | 2264 | { |
2265 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2265 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2266 | if( avatar ) | 2266 | if( avatar ) |
2267 | { | 2267 | { |
2268 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); | 2268 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); |
@@ -2292,7 +2292,7 @@ class LLAvatarEnableFreezeEject : public view_listener_t | |||
2292 | { | 2292 | { |
2293 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2293 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2294 | { | 2294 | { |
2295 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2295 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2296 | bool new_value = (avatar != NULL); | 2296 | bool new_value = (avatar != NULL); |
2297 | 2297 | ||
2298 | if (new_value) | 2298 | if (new_value) |
@@ -2317,7 +2317,7 @@ class LLAvatarGiveCard : public view_listener_t | |||
2317 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2317 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2318 | { | 2318 | { |
2319 | llinfos << "handle_give_card()" << llendl; | 2319 | llinfos << "handle_give_card()" << llendl; |
2320 | LLViewerObject* dest = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2320 | LLViewerObject* dest = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2321 | if(dest && dest->isAvatar()) | 2321 | if(dest && dest->isAvatar()) |
2322 | { | 2322 | { |
2323 | bool found_name = false; | 2323 | bool found_name = false; |
@@ -2774,7 +2774,7 @@ class LLAvatarEnableAddFriend : public view_listener_t | |||
2774 | { | 2774 | { |
2775 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2775 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2776 | { | 2776 | { |
2777 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getFirstObject()); | 2777 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()); |
2778 | bool new_value = avatar && !is_agent_friend(avatar->getID()); | 2778 | bool new_value = avatar && !is_agent_friend(avatar->getID()); |
2779 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 2779 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
2780 | return true; | 2780 | return true; |
@@ -3289,7 +3289,7 @@ class LLEditEnableDuplicate : public view_listener_t | |||
3289 | 3289 | ||
3290 | void disabled_duplicate(void*) | 3290 | void disabled_duplicate(void*) |
3291 | { | 3291 | { |
3292 | if (LLSelectMgr::getInstance()->getSelection()->getFirstObject()) | 3292 | if (LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()) |
3293 | { | 3293 | { |
3294 | LLNotifyBox::showXml("CopyFailed"); | 3294 | LLNotifyBox::showXml("CopyFailed"); |
3295 | } | 3295 | } |
@@ -4905,11 +4905,11 @@ class LLToolsLookAtSelection : public view_listener_t | |||
4905 | 4905 | ||
4906 | if (zoom) | 4906 | if (zoom) |
4907 | { | 4907 | { |
4908 | gAgent.setCameraPosAndFocusGlobal(LLSelectMgr::getInstance()->getSelectionCenterGlobal() + LLVector3d(obj_to_cam * distance), LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getFirstObject()->mID ); | 4908 | gAgent.setCameraPosAndFocusGlobal(LLSelectMgr::getInstance()->getSelectionCenterGlobal() + LLVector3d(obj_to_cam * distance), LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()->mID ); |
4909 | } | 4909 | } |
4910 | else | 4910 | else |
4911 | { | 4911 | { |
4912 | gAgent.setFocusGlobal( LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getFirstObject()->mID ); | 4912 | gAgent.setFocusGlobal( LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()->mID ); |
4913 | } | 4913 | } |
4914 | } | 4914 | } |
4915 | return true; | 4915 | return true; |
@@ -4944,7 +4944,7 @@ class LLAvatarInviteToGroup : public view_listener_t | |||
4944 | { | 4944 | { |
4945 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4945 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4946 | { | 4946 | { |
4947 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 4947 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
4948 | if(avatar) | 4948 | if(avatar) |
4949 | { | 4949 | { |
4950 | invite_to_group(avatar->getID()); | 4950 | invite_to_group(avatar->getID()); |
@@ -4957,7 +4957,7 @@ class LLAvatarAddFriend : public view_listener_t | |||
4957 | { | 4957 | { |
4958 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4958 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4959 | { | 4959 | { |
4960 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 4960 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
4961 | if(avatar && !is_agent_friend(avatar->getID())) | 4961 | if(avatar && !is_agent_friend(avatar->getID())) |
4962 | { | 4962 | { |
4963 | request_friendship(avatar->getID()); | 4963 | request_friendship(avatar->getID()); |
@@ -5030,11 +5030,11 @@ class LLEnablePayObject : public view_listener_t | |||
5030 | { | 5030 | { |
5031 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5031 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5032 | { | 5032 | { |
5033 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getFirstObject()); | 5033 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()); |
5034 | bool new_value = (avatar != NULL); | 5034 | bool new_value = (avatar != NULL); |
5035 | if (!new_value) | 5035 | if (!new_value) |
5036 | { | 5036 | { |
5037 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5037 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5038 | if( object ) | 5038 | if( object ) |
5039 | { | 5039 | { |
5040 | LLViewerObject *parent = (LLViewerObject *)object->getParent(); | 5040 | LLViewerObject *parent = (LLViewerObject *)object->getParent(); |
@@ -5054,7 +5054,7 @@ class LLObjectEnableSitOrStand : public view_listener_t | |||
5054 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5054 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5055 | { | 5055 | { |
5056 | bool new_value = false; | 5056 | bool new_value = false; |
5057 | LLViewerObject* dest_object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5057 | LLViewerObject* dest_object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5058 | 5058 | ||
5059 | if(dest_object) | 5059 | if(dest_object) |
5060 | { | 5060 | { |
@@ -5419,7 +5419,7 @@ class LLShowAgentProfile : public view_listener_t | |||
5419 | } | 5419 | } |
5420 | else if (userdata.asString() == "hit object") | 5420 | else if (userdata.asString() == "hit object") |
5421 | { | 5421 | { |
5422 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5422 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5423 | if (objectp) | 5423 | if (objectp) |
5424 | { | 5424 | { |
5425 | agent_id = objectp->getID(); | 5425 | agent_id = objectp->getID(); |
@@ -5640,7 +5640,7 @@ class LLAttachmentDrop : public view_listener_t | |||
5640 | { | 5640 | { |
5641 | // Called when the user clicked on an object attached to them | 5641 | // Called when the user clicked on an object attached to them |
5642 | // and selected "Drop". | 5642 | // and selected "Drop". |
5643 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5643 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5644 | if (!object) | 5644 | if (!object) |
5645 | { | 5645 | { |
5646 | llwarns << "handle_drop_attachment() - no object to drop" << llendl; | 5646 | llwarns << "handle_drop_attachment() - no object to drop" << llendl; |
@@ -5740,7 +5740,7 @@ class LLAttachmentDetach : public view_listener_t | |||
5740 | { | 5740 | { |
5741 | // Called when the user clicked on an object attached to them | 5741 | // Called when the user clicked on an object attached to them |
5742 | // and selected "Detach". | 5742 | // and selected "Detach". |
5743 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5743 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5744 | if (!object) | 5744 | if (!object) |
5745 | { | 5745 | { |
5746 | llwarns << "handle_detach() - no object to detach" << llendl; | 5746 | llwarns << "handle_detach() - no object to detach" << llendl; |
@@ -5820,7 +5820,7 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
5820 | // in your inventory. Therefore, we disable the drop option until the | 5820 | // in your inventory. Therefore, we disable the drop option until the |
5821 | // item is in your inventory | 5821 | // item is in your inventory |
5822 | 5822 | ||
5823 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5823 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5824 | LLViewerJointAttachment* attachment_pt = NULL; | 5824 | LLViewerJointAttachment* attachment_pt = NULL; |
5825 | LLInventoryItem* item = NULL; | 5825 | LLInventoryItem* item = NULL; |
5826 | 5826 | ||
@@ -5862,7 +5862,7 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
5862 | 5862 | ||
5863 | BOOL enable_detach(void*) | 5863 | BOOL enable_detach(void*) |
5864 | { | 5864 | { |
5865 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5865 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5866 | if (!object) return FALSE; | 5866 | if (!object) return FALSE; |
5867 | if (!object->isAttachment()) return FALSE; | 5867 | if (!object->isAttachment()) return FALSE; |
5868 | 5868 | ||
@@ -5969,7 +5969,7 @@ class LLAvatarSendIM : public view_listener_t | |||
5969 | { | 5969 | { |
5970 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5970 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5971 | { | 5971 | { |
5972 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 5972 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
5973 | if(avatar) | 5973 | if(avatar) |
5974 | { | 5974 | { |
5975 | std::string name("IM"); | 5975 | std::string name("IM"); |
@@ -6781,7 +6781,7 @@ void handle_dump_avatar_local_textures(void*) | |||
6781 | 6781 | ||
6782 | void handle_debug_avatar_textures(void*) | 6782 | void handle_debug_avatar_textures(void*) |
6783 | { | 6783 | { |
6784 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 6784 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
6785 | if (objectp) | 6785 | if (objectp) |
6786 | { | 6786 | { |
6787 | LLFloaterAvatarTextures::show(objectp->getID()); | 6787 | LLFloaterAvatarTextures::show(objectp->getID()); |